Class DefaultMonthSelector
- java.lang.Object
-
- com.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.DatePickerComponent
-
- com.google.gwt.user.datepicker.client.MonthSelector
-
- com.google.gwt.user.datepicker.client.DefaultMonthSelector
-
- All Implemented Interfaces:
HasAttachHandlers,HasHandlers,EventListener,HasVisibility,IsRenderable,IsWidget
public final class DefaultMonthSelector extends MonthSelector
A simpleMonthSelectorused for the default date picker. It allows to select months and years but the name is not changed for backward compatibility. Also not extensible as we wish to evolve it freely over time.
-
-
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
Constructors Constructor Description DefaultMonthSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetBackwardButtonElement()Returns the button for moving to the previous month.ElementgetForwardButtonElement()Returns the button for moving to the next month.ListBoxgetMonthSelectListBox()Returns the ListBox for selecting the monthElementgetYearBackwardButtonElement()Returns the button for moving to the previous year.ElementgetYearForwardButtonElement()Returns the button for moving to the next year.ListBoxgetYearSelectListBox()Returns the ListBox for selecting the yearprotected voidrefresh()Refresh the component.protected voidsetup()Set up the component.-
Methods inherited from class com.google.gwt.user.datepicker.client.DatePickerComponent
addMonths, css, getDatePicker, getModel, refreshAll, setDatePicker
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
getBackwardButtonElement
public Element getBackwardButtonElement()
Returns the button for moving to the previous month.
-
getForwardButtonElement
public Element getForwardButtonElement()
Returns the button for moving to the next month.
-
getYearBackwardButtonElement
public Element getYearBackwardButtonElement()
Returns the button for moving to the previous year.
-
getYearForwardButtonElement
public Element getYearForwardButtonElement()
Returns the button for moving to the next year.
-
getMonthSelectListBox
public ListBox getMonthSelectListBox()
Returns the ListBox for selecting the month
-
getYearSelectListBox
public ListBox getYearSelectListBox()
Returns the ListBox for selecting the year
-
refresh
protected void refresh()
Description copied from class:DatePickerComponentRefresh the component. Usually called because the model's current date has changed. In general, only should be called byDatePicker. Use refreshAll() if you need to refresh all components.- Specified by:
refreshin classDatePickerComponent
-
setup
protected void setup()
Description copied from class:DatePickerComponentSet up the component.- Specified by:
setupin classDatePickerComponent
-
-