IT. Expert System.

Android Reference

MonthDisplayHelper


android.util

Class MonthDisplayHelper

  • Direct Known Subclasses:
    DayOfMonthCursor


    public class MonthDisplayHelper
    extends Object
    Helps answer common questions that come up when displaying a month in a 6 row calendar grid format. Not thread safe.
    • Constructor Detail

      • MonthDisplayHelper

        public MonthDisplayHelper(int year,
                          int month,
                          int weekStartDay)
        Parameters:
        year - The year.
        month - The month.
        weekStartDay - What day of the week the week should start.
      • MonthDisplayHelper

        public MonthDisplayHelper(int year,
                          int month)
    • Method Detail

      • getYear

        public int getYear()
      • getMonth

        public int getMonth()
      • getWeekStartDay

        public int getWeekStartDay()
      • getFirstDayOfMonth

        public int getFirstDayOfMonth()
        Returns:
        The first day of the month using a constants such as Calendar.SUNDAY.
      • getNumberOfDaysInMonth

        public int getNumberOfDaysInMonth()
        Returns:
        The number of days in the month.
      • getOffset

        public int getOffset()
        Returns:
        The offset from displaying everything starting on the very first box. For example, if the calendar is set to display the first day of the week as Sunday, and the month starts on a Wednesday, the offset is 3.
      • getDigitsForRow

        public int[] getDigitsForRow(int row)
        Parameters:
        row - Which row (0-5).
        Returns:
        the digits of the month to display in one of the 6 rows of a calendar month display.
      • getDayAt

        public int getDayAt(int row,
                   int column)
        Parameters:
        row - The row, 0-5, starting from the top.
        column - The column, 0-6, starting from the left.
        Returns:
        The day at a particular row, column
      • getRowOf

        public int getRowOf(int day)
        Returns:
        Which row day is in.
      • getColumnOf

        public int getColumnOf(int day)
        Returns:
        Which column day is in.
      • previousMonth

        public void previousMonth()
        Decrement the month.
      • nextMonth

        public void nextMonth()
        Increment the month.
      • isWithinCurrentMonth

        public boolean isWithinCurrentMonth(int row,
                                   int column)
        Returns:
        Whether the row and column fall within the month.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 48 / 158770665. Delta: 0.04305 с