|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.Container
pivot.wtk.Calendar
public class Calendar
Component that allows the user to select a date.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Field Summary | |
---|---|
static String |
COUNTRY_KEY
|
static String |
LANGUAGE_KEY
|
static String |
VARIANT_KEY
|
Constructor Summary | |
---|---|
Calendar()
|
|
Calendar(int year,
int month)
|
Method Summary | |
---|---|
ListenerList<CalendarListener> |
getCalendarListeners()
Returns the calendar listener list. |
ListenerList<CalendarSelectionListener> |
getCalendarSelectionListeners()
Returns the calendar selection listener list. |
Locale |
getLocale()
Returns the locale used to present calendar data. |
int |
getMonth()
Gets the month to which this calendar is currently set. |
CalendarDate |
getSelectedDate()
Gets the currently selected date, or null if no date is selected. |
String |
getSelectedDateKey()
Gets the data binding key that is set on this calendar. |
int |
getYear()
Gets the year to which this calendar is currently set. |
void |
load(Dictionary<String,?> context)
Loads the selected date from the specified bind context using this date picker's bind key, if one is set. |
void |
setLocale(Dictionary<String,?> locale)
Sets the locale used to present calendar data. |
void |
setLocale(Locale locale)
Sets the locale used to present calendar data. |
void |
setLocale(String locale)
Sets the locale used to present calendar data. |
void |
setMonth(int month)
Sets this calendar's month. |
void |
setSelectedDate(CalendarDate selectedDate)
Sets the currently selected date. |
void |
setSelectedDate(String selectedDate)
Sets the selected date to the date represented by the specified date string. |
void |
setSelectedDateKey(String selectedDateKey)
Sets this calendar's data binding key. |
void |
setYear(int year)
Sets this calendar's year. |
void |
store(Dictionary<String,?> context)
Stores the selected date into the specified bind context using this date picker's bind key, if one is set. |
Methods inherited from class pivot.wtk.Container |
---|
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String LANGUAGE_KEY
public static final String COUNTRY_KEY
public static final String VARIANT_KEY
Constructor Detail |
---|
public Calendar()
public Calendar(int year, int month)
Method Detail |
---|
public int getYear()
public void setYear(int year)
public int getMonth()
public void setMonth(int month)
public CalendarDate getSelectedDate()
public void setSelectedDate(CalendarDate selectedDate)
selectedDate
- The selected date, or null to specify no selectionpublic final void setSelectedDate(String selectedDate)
selectedDate
- A string in the form of [YYYY]-[MM]-[DD] (e.g. 2008-07-23)public String getSelectedDateKey()
public void setSelectedDateKey(String selectedDateKey)
public Locale getLocale()
public void setLocale(Locale locale)
locale
- public void setLocale(Dictionary<String,?> locale)
locale
- An dictionary containing values for language, country, and variant.
Country and variant are optional but the must adhere to the following
rules:
public void setLocale(String locale)
locale
- A JSON map containing values for language, country, and variant.setLocale(Dictionary)
public void load(Dictionary<String,?> context)
load
in class Container
public void store(Dictionary<String,?> context)
store
in class Container
public ListenerList<CalendarListener> getCalendarListeners()
public ListenerList<CalendarSelectionListener> getCalendarSelectionListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |