public class SimpleDatePopup extends SimplePopup
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimpleDatePopup.DateSelectionHandler
Date selection handler.
|
SimplePopup.Position, SimplePopup.PositionCallback| Modifier and Type | Field and Description |
|---|---|
protected SimpleDatePopup.DateSelectionHandler |
selectionHandler
The underlying selection handler.
|
panel| Constructor and Description |
|---|
SimpleDatePopup(Date givenDate,
DateStyle dateStyle,
SimpleDatePopup.DateSelectionHandler handler)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelativeTimeChooser(String[] choiceTitles,
int[] choiceRelativeMinutes,
Integer initialChoice,
boolean includeNowButton,
boolean closeOnChoice)
Adds a drop down list to choose times relative to the current time (e.g., "in 10 Minutes").
|
void |
addWidget(com.google.gwt.user.client.ui.Widget widget,
int position)
Adds another user-defined widget to the date popup, e.g. for additional options when choosing the date.
|
protected com.google.gwt.user.client.ui.Widget |
createCommandPanel(com.google.gwt.event.dom.client.ClickHandler okClickHandler)
Creates the command panel (with the buttons to confirm or cancel the date choice).
|
void |
setDateTimeSelectionCaptionVisible(boolean visible)
Sets the visibility of the caption for the date/time selection (default: caption is not visible).
|
add, addCloseHandler, clear, hide, hide, onHide, onShow, setAutoHide, setGlassEnabled, setVisible, show, showCentered, showRelativeTogetContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toStringprotected final SimpleDatePopup.DateSelectionHandler selectionHandler
public SimpleDatePopup(Date givenDate, DateStyle dateStyle, SimpleDatePopup.DateSelectionHandler handler)
givenDate - date to start withdateStyle - der date stylehandler - date selection handlerpublic void addWidget(com.google.gwt.user.client.ui.Widget widget,
int position)
widget - additional widgetposition - of the widget in the main vertical panel (0=first widget)public void addRelativeTimeChooser(String[] choiceTitles, int[] choiceRelativeMinutes, Integer initialChoice, boolean includeNowButton, boolean closeOnChoice)
choiceTitles - titles of the available choiceschoiceRelativeMinutes - for each choice, difference to the current time in minutesinitialChoice - initially selected choice - must be one of choiceRelativeMinutes, or null if no selectionincludeNowButton - whether a "now" button should be included to choose the current timecloseOnChoice - whether the date popup should be immediately closed when a relative choice is madepublic void setDateTimeSelectionCaptionVisible(boolean visible)
visible - visibility of caption for date/time selectionprotected com.google.gwt.user.client.ui.Widget createCommandPanel(com.google.gwt.event.dom.client.ClickHandler okClickHandler)
okClickHandler - ClickHandler that is called when the confirm button is pressed and which parses the date.Copyright © 2011–2015 SWM. All rights reserved.