|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.datepicker.client.CalendarModel
public class CalendarModel
Model used to get calendar information for DatePicker
and its
subclasses.
Field Summary | |
---|---|
static int |
DAYS_IN_WEEK
Number of days normally displayed in a week. |
static int |
WEEKS_IN_MONTH
The number of weeks normally displayed in a month. |
Constructor Summary | |
---|---|
CalendarModel()
Constructor. |
Method Summary | |
---|---|
java.lang.String |
formatCurrentMonth()
Formats the current specified month. |
java.lang.String |
formatDayOfMonth(java.util.Date date)
Formats a date's day of month. |
java.lang.String |
formatDayOfWeek(int dayInWeek)
Format a day in the week. |
java.util.Date |
getCurrentFirstDayOfFirstWeek()
Gets the first day of the first week in the currently specified month. |
java.util.Date |
getCurrentMonth()
Gets the date representation of the currently specified month. |
protected DateTimeFormat |
getDayOfMonthFormatter()
Gets the date of month formatter. |
protected DateTimeFormat |
getDayOfWeekFormatter()
Gets the day of week formatter. |
protected DateTimeFormat |
getMonthAndYearFormatter()
Gets the month and year formatter. |
boolean |
isInCurrentMonth(java.util.Date date)
Is a date in the currently specified month? |
protected void |
refresh()
Refresh the current model as needed. |
void |
setCurrentMonth(java.util.Date currentDate)
Sets the currently specified date. |
void |
shiftCurrentMonth(int deltaMonths)
Shifts the currently specified date by the given number of months. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WEEKS_IN_MONTH
public static final int DAYS_IN_WEEK
Constructor Detail |
---|
public CalendarModel()
Method Detail |
---|
public java.lang.String formatCurrentMonth()
public java.lang.String formatDayOfMonth(java.util.Date date)
date
- the date
public java.lang.String formatDayOfWeek(int dayInWeek)
dayInWeek
- the day in week to format
public java.util.Date getCurrentFirstDayOfFirstWeek()
public java.util.Date getCurrentMonth()
public boolean isInCurrentMonth(java.util.Date date)
date
- the date
public void setCurrentMonth(java.util.Date currentDate)
currentDate
- the currently specified datepublic void shiftCurrentMonth(int deltaMonths)
deltaMonths
- - number of months to be added to the current dateprotected DateTimeFormat getDayOfMonthFormatter()
protected DateTimeFormat getDayOfWeekFormatter()
protected DateTimeFormat getMonthAndYearFormatter()
protected void refresh()
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |