Method Summary
|
| loadDefaultCalendar |
load the default calendar for the given locale |
|
| loadCalendar |
load a specific calendar for the given locale |
|
| getLoadedCalendar |
get the current loaded Calendar |
|
| getAllCalendars |
returns all available calendars for the given locale |
|
| getUniqueID |
returns the ID string of the loaded calendar, e.g. gregorian |
|
| setDateTime |
Set the date/time as an offset to the start of the calendar at 1-Jan-1970 00:00
The integer part represents the number of days passed since start date.
The fractional part represents fractions of a day, thus 0.5 means 12 hours.
|
|
| getDateTime |
Get the date/time as an offset to the start of the calendar at 1-Jan-1970 00:00
The integer part represents the number of days passed since start date.
The fractional part represents fractions of a day, thus 0.5 means 12 hours.
|
|
| setValue |
Set the value of a field.
|
|
| getValue |
Get the value of a field.
|
|
| isValid |
Verify if the date fields set by "setValue()" is valid.
It has a side-effect because it will internally calculate
the final value for the date fields
|
|
| addValue |
Add an amount to a field.
|
|
| getFirstDayOfWeek |
returns the first day of a week, one of Weekdays values |
|
| setFirstDayOfWeek |
set the first day of a week, one of Weekdays values |
|
| setMinimumNumberOfDaysForFirstWeek |
set how many days of a week must reside in the first week of a year |
|
| getMinimumNumberOfDaysForFirstWeek |
returns how many days of a week must reside in the first week of a year |
|
| getNumberOfMonthsInYear |
returns the number of months in a year, e.g., 12 |
|
| getNumberOfDaysInWeek |
returns the number of days in a week, e.g., 7 |
|
| getMonths |
returns a sequence of CalendarItem describing the month names |
|
| getDays |
returns a sequence of CalendarItem describing the day names |
|
| getDisplayName |
Returns a string (name to display) matching the given parameters.
|
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.