|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
com.google.gwt.widgetideas.datepicker.client.impl.DatePickerDate
public class DatePickerDate
DatePickerDate public class is used by DatePicker UI class. This class does the following extra calendar calculations required for displaying dates in a grid:
Method Summary | |
---|---|
boolean |
addMonths(int deltaMonths)
Public method addMonths() add a positive or negative number to the date. |
int |
currMonthSize()
Public method currMonthSize() returns size of the current month |
int |
dayDiff()
Public method dayDiff() returns difference in days from the date given for setDayDiff(). |
static java.util.Date |
getDateAtDayStart()
Public static method getDateAtDayStart() return the Date object with time set to 00:00:00. |
static java.util.Date |
getDateAtMonthStart()
Public static method getDateAtMonthStart() return the Date object with date set to 1 and time set to 00:00:00. |
int |
prevMonthSize()
Public method prevMonthSize() returns size of the month previous to current one. |
void |
setDate(int date)
Public method setDate() sets the day of the month to the given value. |
void |
setDayDiff(java.util.Date date,
int offset)
Public method setDayDiff() stores the difference in days from a given date, plus a given offset. |
void |
setFullDate(java.util.Date date)
Public method setFullDate() sets the given date. |
void |
setMonth(int month)
Public method setMonth() sets the month to the given value. |
void |
setTag(java.lang.String tag)
Public method setTag() sets a string tag |
boolean |
setToday()
Public method setToday() resets the date to today's date. |
void |
setYear(int year)
Public method setYear() sets the year to the given value. |
java.lang.String |
tag()
Public method tag() gets the a string tag assigned |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setHours, setMinutes, setSeconds, setTime, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static java.util.Date getDateAtDayStart()
public static java.util.Date getDateAtMonthStart()
public boolean addMonths(int deltaMonths)
deltaMonths
- - number of months to be added to the current date
public int currMonthSize()
public int dayDiff()
public int prevMonthSize()
public void setDate(int date)
setDate
in class java.util.Date
date
- - day of the month to be setpublic void setDayDiff(java.util.Date date, int offset)
date
- - the date from which difference has to be computedoffset
- - the offset to be added to the set valuepublic void setFullDate(java.util.Date date)
date
- - date to be setpublic void setMonth(int month)
setMonth
in class java.util.Date
month
- - month to be setpublic void setTag(java.lang.String tag)
tag
- - a string tagpublic boolean setToday()
public void setYear(int year)
setYear
in class java.util.Date
year
- - year to be setpublic java.lang.String tag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |