|
||||||||||
| 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.user.datepicker.client.DatePicker
public class DatePicker
Standard GWT date picker.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DatePicker()
Create a new date picker. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addHighlightHandler(HighlightHandler<java.util.Date> handler)
Adds a HighlightEvent handler. |
HandlerRegistration |
addShowRangeHandler(ShowRangeHandler<java.util.Date> handler)
Adds a ShowRangeEvent handler. |
HandlerRegistration |
addShowRangeHandlerAndFire(ShowRangeHandler<java.util.Date> handler)
Adds a show range handler and immediately activate the handler on the current view. |
void |
addStyleToDates(java.lang.String styleName,
java.util.Date date)
Add a style name to the given dates. |
void |
addStyleToDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
Add a style name to the given dates. |
void |
addStyleToDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
Add a style name to the given dates. |
void |
addTransientStyleToDates(java.lang.String styleName,
java.util.Date date)
Adds the given style name to the specified dates, which must be visible. |
void |
addTransientStyleToDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
Adds the given style name to the specified dates, which must be visible. |
void |
addTransientStyleToDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
Adds the given style name to the specified dates, which must be visible. |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<java.util.Date> handler)
Adds a ValueChangeEvent handler. |
java.util.Date |
getCurrentMonth()
Gets the current month the date picker is showing. |
java.util.Date |
getFirstDate()
Returns the first shown date. |
java.util.Date |
getHighlightedDate()
Gets the highlighted date (the one the mouse is hovering over), if any. |
java.util.Date |
getLastDate()
Returns the last shown date. |
java.lang.String |
getStyleOfDate(java.util.Date date)
Gets the style associated with a date (does not include styles set via addTransientStyleToDates(java.lang.String, java.util.Date)). |
java.util.Date |
getValue()
Returns the selected date, or null if none is selected. |
boolean |
isDateEnabled(java.util.Date date)
Is the visible date enabled? |
boolean |
isDateVisible(java.util.Date date)
Is the date currently shown in the date picker? |
void |
onLoad()
This method is called immediately after a widget becomes attached to the browser's document. |
void |
removeStyleFromDates(java.lang.String styleName,
java.util.Date date)
Removes the styleName from the given dates (even if it is transient). |
void |
removeStyleFromDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
Removes the styleName from the given dates (even if it is transient). |
void |
removeStyleFromDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
Removes the styleName from the given dates (even if it is transient). |
void |
setCurrentMonth(java.util.Date month)
Sets the date picker to show the given month, use getFirstDate()
and getLastDate() to access the exact date range the date picker
chose to display. |
void |
setStyleName(java.lang.String styleName)
Sets the date picker style name. |
void |
setTransientEnabledOnDates(boolean enabled,
java.util.Date date)
Sets a visible date to be enabled or disabled. |
void |
setTransientEnabledOnDates(boolean enabled,
java.util.Date date,
java.util.Date... moreDates)
Sets a visible date to be enabled or disabled. |
void |
setTransientEnabledOnDates(boolean enabled,
java.lang.Iterable<java.util.Date> dates)
Sets a group of visible dates to be enabled or disabled. |
void |
setValue(java.util.Date newValue)
Sets the DatePicker's value. |
void |
setValue(java.util.Date newValue,
boolean fireEvents)
Sets the DatePicker's value. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
isAttached, onBrowserEvent |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public DatePicker()
| Method Detail |
|---|
public HandlerRegistration addHighlightHandler(HighlightHandler<java.util.Date> handler)
HasHighlightHandlersHighlightEvent handler.
addHighlightHandler in interface HasHighlightHandlers<java.util.Date>handler - the handler
public HandlerRegistration addShowRangeHandler(ShowRangeHandler<java.util.Date> handler)
HasShowRangeHandlersShowRangeEvent handler.
addShowRangeHandler in interface HasShowRangeHandlers<java.util.Date>handler - the handler
public HandlerRegistration addShowRangeHandlerAndFire(ShowRangeHandler<java.util.Date> handler)
handler - the handler
public void addStyleToDates(java.lang.String styleName,
java.util.Date date)
public void addStyleToDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
public void addStyleToDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
public void addTransientStyleToDates(java.lang.String styleName,
java.util.Date date)
public final void addTransientStyleToDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
public final void addTransientStyleToDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<java.util.Date> handler)
HasValueChangeHandlersValueChangeEvent handler.
addValueChangeHandler in interface HasValueChangeHandlers<java.util.Date>handler - the handler
public java.util.Date getCurrentMonth()
A datepicker may show days not in the current month. It must show all days in the current month.
public final java.util.Date getFirstDate()
public final java.util.Date getHighlightedDate()
public final java.util.Date getLastDate()
public java.lang.String getStyleOfDate(java.util.Date date)
addTransientStyleToDates(java.lang.String, java.util.Date)).
date - the date
public final java.util.Date getValue()
getValue in interface HasValue<java.util.Date>getValue in interface TakesValue<java.util.Date>public boolean isDateEnabled(java.util.Date date)
date - the date, which must be visible
public boolean isDateVisible(java.util.Date date)
date -
public void onLoad()
Widget
public void removeStyleFromDates(java.lang.String styleName,
java.util.Date date)
public void removeStyleFromDates(java.lang.String styleName,
java.util.Date date,
java.util.Date... moreDates)
public void removeStyleFromDates(java.lang.String styleName,
java.lang.Iterable<java.util.Date> dates)
public void setCurrentMonth(java.util.Date month)
getFirstDate()
and getLastDate() to access the exact date range the date picker
chose to display.
A datepicker may show days not in the current month. It must show all days in the current month.
month - the month to showpublic void setStyleName(java.lang.String styleName)
setStyleName in class UIObjectstyleName - the new style nameUIObject.setStylePrimaryName(String)
public final void setTransientEnabledOnDates(boolean enabled,
java.util.Date date)
public final void setTransientEnabledOnDates(boolean enabled,
java.util.Date date,
java.util.Date... moreDates)
public final void setTransientEnabledOnDates(boolean enabled,
java.lang.Iterable<java.util.Date> dates)
public final void setValue(java.util.Date newValue)
DatePicker's value.
setValue in interface HasValue<java.util.Date>setValue in interface TakesValue<java.util.Date>newValue - the new value
public final void setValue(java.util.Date newValue,
boolean fireEvents)
DatePicker's value.
setValue in interface HasValue<java.util.Date>newValue - the new value for this date pickerfireEvents - should events be fired.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||