public class DatePopup
extends com.google.gwt.user.client.ui.PopupPanel
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatePopup.DateSelectionHandler
Date selection handler.
|
com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Constructor and Description |
|---|
DatePopup(Date givenDate,
DateStyle dateStyle,
DatePopup.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).
|
DatePopup.DateSelectionHandler |
getSelectionHandler() |
void |
setDateTimeSelectionCaptionVisible(boolean visible)
Sets the visibility of the caption for the date/time selection (default: caption is not visible).
|
void |
setSelectionHandler(DatePopup.DateSelectionHandler selectionHandler) |
void |
showCentered(boolean glassEffect)
Will display the popup centered.
|
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringpublic DatePopup(Date givenDate, DateStyle dateStyle, DatePopup.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.public void showCentered(boolean glassEffect)
glassEffect - true if glass efectpublic DatePopup.DateSelectionHandler getSelectionHandler()
public void setSelectionHandler(DatePopup.DateSelectionHandler selectionHandler)
Copyright © 2011–2015 SWM. All rights reserved.