|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Calendar
public class Calendar
Component that allows the user to select a date.
| Nested Class Summary | |
|---|---|
static interface |
Calendar.SelectedDateBindMapping
Translates between calendar date and context data during data binding. |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
|---|
Container.EDT_Checker |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
|---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
|---|
Sequence.Tree<T> |
| Field Summary | |
|---|---|
static String |
COUNTRY_KEY
|
static String |
LANGUAGE_KEY
|
static String |
VARIANT_KEY
|
| Constructor Summary | |
|---|---|
Calendar()
|
|
Calendar(int year,
int month)
|
|
| Method Summary | |
|---|---|
void |
clear()
Propagates clear operation to subcomponents. |
ListenerList<CalendarBindingListener> |
getCalendarBindingListeners()
Returns the calendar binding listener list. |
ListenerList<CalendarListener> |
getCalendarListeners()
Returns the calendar listener list. |
ListenerList<CalendarSelectionListener> |
getCalendarSelectionListeners()
Returns the calendar selection listener list. |
Filter<CalendarDate> |
getDisabledDateFilter()
|
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. |
Calendar.SelectedDateBindMapping |
getSelectedDateBindMapping()
|
BindType |
getSelectedDateBindType()
|
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(Object context)
Propagates binding to subcomponents. |
void |
setDisabledDateFilter(Filter<CalendarDate> disabledDateFilter)
|
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 |
setSelectedDateBindMapping(Calendar.SelectedDateBindMapping selectedDateBindMapping)
|
void |
setSelectedDateBindType(BindType selectedDateBindType)
|
void |
setSelectedDateKey(String selectedDateKey)
Sets this calendar's data binding key. |
void |
setYear(int year)
Sets this calendar's year. |
void |
store(Object context)
Propagates binding to subcomponents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 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 Filter<CalendarDate> getDisabledDateFilter()
public void setDisabledDateFilter(Filter<CalendarDate> disabledDateFilter)
public String getSelectedDateKey()
public void setSelectedDateKey(String selectedDateKey)
public BindType getSelectedDateBindType()
public void setSelectedDateBindType(BindType selectedDateBindType)
public Calendar.SelectedDateBindMapping getSelectedDateBindMapping()
public void setSelectedDateBindMapping(Calendar.SelectedDateBindMapping selectedDateBindMapping)
public void load(Object context)
Container
load in class Containerpublic void store(Object context)
Container
store in class Containerpublic void clear()
Container
clear in class Containerpublic ListenerList<CalendarListener> getCalendarListeners()
public ListenerList<CalendarSelectionListener> getCalendarSelectionListeners()
public ListenerList<CalendarBindingListener> getCalendarBindingListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||