|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.widgetideas.datepicker.client.DatePicker
public class DatePicker
Date picker.
Nested Class Summary | |
---|---|
protected static class |
DatePicker.Styles
Styles used for the DatePicker family of widgets. |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
|
DatePicker()
Constructor. |
protected |
DatePicker(MonthSelector monthSelector,
CalendarView calendarView,
CalendarModel model)
Constructor for use by subtypes. |
Method Summary | |
---|---|
void |
addChangeHandler(ChangeHandler<java.util.Date> handler)
Adds a change handler. |
void |
addGlobalDateStyle(java.util.Date date,
java.lang.String styleName)
Globally adds a style name to a date. |
void |
addHighlightHandler(HighlightHandler<java.util.Date> handler)
Adds a highlight handler. |
void |
addRenderingHandler(RenderingHandler handler)
Adds a rendering handler. |
void |
addVisibleDateStyle(java.util.Date date,
java.lang.String styleName)
Shows the given style name on the specified date. |
void |
addVisibleDateStyles(java.lang.Iterable<java.util.Date> dates,
java.lang.String styleName)
Removes a style name from multiple dates. |
protected CalendarView |
getCalendarView()
Gets the date view currently associated with this date picker. |
java.util.Date |
getDateShown()
Gets the currently shown date. |
java.lang.String |
getGlobalDateStyle(java.util.Date d)
Gets the global style name associated with a date. |
java.util.Date |
getHighlightedDate()
Gets the highlighted date, if any. |
protected CalendarModel |
getModel()
Gets the model associated with this date picker. |
protected com.google.gwt.user.client.ui.Widget |
getMonthSelector()
Gets the month selector associated with this date picker. |
java.util.Date |
getSelectedDate()
Gets the selected date, if any. |
boolean |
isDateEnabled(java.util.Date date)
Is the date enabled? |
boolean |
isDateVisible(java.util.Date date)
Is the date currently shown in the date picker? |
void |
removeChangeHandler(ChangeHandler<java.util.Date> handler)
Removes a change handler. |
void |
removeGlobalDateStyle(java.util.Date date,
java.lang.String styleName)
Globally removes a style from a date. |
void |
removeHighlightHandler(HighlightHandler<java.util.Date> handler)
Removes a highlight handler. |
void |
removeRenderingHandler(RenderingHandler handler)
Removes a rendering handler. |
void |
removeVisibleDateStyles(java.util.Iterator<java.util.Date> dates,
java.lang.String styleName)
Removes a style name from multiple visible dates. |
void |
selectHighlightedDate()
Selects the current highlighted date. |
void |
setAllowableDates(java.util.Date from,
java.util.Date to)
Restricts the date range this picker can show. |
void |
setSelectedDate(java.util.Date date)
Sets the selected date. |
protected void |
setup()
Sets up the date picker. |
void |
setVisibleDateEnabled(java.util.Date date,
boolean enabled)
Sets a visible date to be enabled or disabled. |
void |
setVisibleEnabledDates(java.lang.Iterable<java.util.Date> dates,
boolean enabled)
Sets a group of visible dates to be enabled or disabled. |
void |
showDate(java.util.Date date)
This method causes the DatePicker to show the given date. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatePicker()
protected DatePicker(MonthSelector monthSelector, CalendarView calendarView, CalendarModel model)
monthSelector
- the month selectorcalendarView
- the calendar viewmodel
- the calendar modelMethod Detail |
---|
public final void addChangeHandler(ChangeHandler<java.util.Date> handler)
FiresChangeEvents
addChangeHandler
in interface FiresChangeEvents<java.util.Date>
handler
- the handlerpublic void addGlobalDateStyle(java.util.Date date, java.lang.String styleName)
date
- datestyleName
- style namepublic final void addHighlightHandler(HighlightHandler<java.util.Date> handler)
FiresHighlightEvents
addHighlightHandler
in interface FiresHighlightEvents<java.util.Date>
handler
- the handlerpublic final void addRenderingHandler(RenderingHandler handler)
FiresRenderingEvents
addRenderingHandler
in interface FiresRenderingEvents
handler
- the handlerpublic final void addVisibleDateStyle(java.util.Date date, java.lang.String styleName)
date
- datestyleName
- style namepublic final void addVisibleDateStyles(java.lang.Iterable<java.util.Date> dates, java.lang.String styleName)
dates
- dates that will have the supplied style removedstyleName
- style name to removepublic java.util.Date getDateShown()
public java.lang.String getGlobalDateStyle(java.util.Date d)
public final java.util.Date getHighlightedDate()
public final java.util.Date getSelectedDate()
public boolean isDateEnabled(java.util.Date date)
date
-
public boolean isDateVisible(java.util.Date date)
date
-
public final void removeChangeHandler(ChangeHandler<java.util.Date> handler)
FiresChangeEvents
removeChangeHandler
in interface FiresChangeEvents<java.util.Date>
handler
- the handlerpublic void removeGlobalDateStyle(java.util.Date date, java.lang.String styleName)
date
- datestyleName
- style namepublic final void removeHighlightHandler(HighlightHandler<java.util.Date> handler)
FiresHighlightEvents
removeHighlightHandler
in interface FiresHighlightEvents<java.util.Date>
handler
- the handlerpublic final void removeRenderingHandler(RenderingHandler handler)
FiresRenderingEvents
removeRenderingHandler
in interface FiresRenderingEvents
handler
- the handlerpublic final void removeVisibleDateStyles(java.util.Iterator<java.util.Date> dates, java.lang.String styleName)
dates
- dates that will have the supplied style removedstyleName
- style name to removepublic final void selectHighlightedDate()
public final void setAllowableDates(java.util.Date from, java.util.Date to)
(Note: not yet implemented for default case).
public final void setSelectedDate(java.util.Date date)
public final void setVisibleDateEnabled(java.util.Date date, boolean enabled)
date
- the dateenabled
- is enabledpublic final void setVisibleEnabledDates(java.lang.Iterable<java.util.Date> dates, boolean enabled)
dates
- the datesenabled
- is enabledpublic final void showDate(java.util.Date date)
protected final CalendarView getCalendarView()
protected final CalendarModel getModel()
protected final com.google.gwt.user.client.ui.Widget getMonthSelector()
protected void setup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |