public class Dialog extends Window implements HasButtonClickHandlers
com.smartgwt.mobile.client.internal.widgets.Popup.PopupStatecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static DialogCssResource |
_CSS |
static Button |
APPLY
APPLY Button object to fire dialog's "applyClick()" method on click.
|
static Button |
CANCEL
CANCEL Button object to fire dialog's "cancelClick()" method on click.
|
static Button |
DONE
DONE Button object to fire dialog's "doneClick()" method on click.
|
static Button |
NO
NO Button object to fire dialog's "noClick()" method on click.
|
static Button |
OK
OK Button object to fire dialog's "okClick()" method on click.
|
static Button |
YES
YES Button object to fire dialog's "yesClick()" method on click
|
_CONTENT_CHANGED_EVENT_TYPE, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Modifier | Constructor and Description |
|---|---|
|
Dialog() |
protected |
Dialog(com.smartgwt.mobile.client.internal.widgets.DialogImpl impl) |
|
Dialog(java.lang.String title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_destroyPopup() |
com.google.gwt.dom.client.Element |
_getButtonsContainerElem() |
com.smartgwt.mobile.client.internal.test.AutoTestLocatable |
_getChildFromLocatorSubstring(java.lang.String substring,
int index,
java.util.List<java.lang.String> locatorArray,
com.smartgwt.mobile.client.internal.test.GetAttributeConfiguration configuration) |
com.google.gwt.event.shared.HandlerRegistration |
addButtonClickHandler(ButtonClickHandler handler) |
protected void |
applyClick()
Called when the
APPLY button is clicked. |
protected void |
cancelClick()
Called when the
CANCEL button is clicked. |
protected void |
doDefaultAction()
Runs the default action.
|
protected void |
doneClick()
Called when the
DONE button is clicked. |
DefaultDialogAction |
getDefaultAction()
The standard action that is executed by
doDefaultAction() when a built-in
button (e.g. |
java.lang.String |
getMessage() |
protected void |
noClick()
Called when the
NO button is clicked. |
protected void |
okClick()
Called when the
OK button is clicked. |
void |
setButtons(Button... buttons)
Array of Buttons to show in the Dialog
|
void |
setDefaultAction(DefaultDialogAction defaultAction) |
void |
setMessage(java.lang.String newMessage) |
protected void |
yesClick()
Called when the
YES button is clicked. |
_doHide, _doShow, _getAttributeFromSplitLocator, _getBackgroundElem, _getHeaderElem, _getHideAnimationName, _getImpl, _getInnerAttributeFromSplitLocator, _getInnerElement, _getShowAnimationName, _makeModalMask, _setHideAnimationName, _setShowAnimationName, addCloseClickHandler, getAnimateHideEffect, getAnimateShowEffect, getBackgroundStyle, getBodyStyle, getDismissOnOutsideClick, getIsModal, getModalMask, getModalMaskStyle, getShowHeader, getTitle, hide, onBrowserEvent, setAnimateHideEffect, setAnimateShowEffect, setBackgroundStyle, setBodyStyle, setDismissOnOutsideClick, setIsModal, setModalMaskStyle, setShowHeader, setTitle, show_addPopupDismissedHandler, _getIsModal, _getModalMask, _getModalMaskStyle, _getStateAsString, _isHidden, _isHiding, _isShowing, _isShown, _onHidden, _onShown, _setHistoryMarker, _setIsModal, _setModalMaskStyle, destroy, onLoad, onUnload_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setElement, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@SGWTInternal public static final DialogCssResource _CSS
public static final Button OK
public static final Button APPLY
public static final Button YES
public static final Button NO
public static final Button CANCEL
public static final Button DONE
protected Dialog(com.smartgwt.mobile.client.internal.widgets.DialogImpl impl)
public Dialog()
public Dialog(java.lang.String title)
@SGWTInternal public final com.google.gwt.dom.client.Element _getButtonsContainerElem()
public DefaultDialogAction getDefaultAction()
doDefaultAction() when a built-in
button (e.g. YES, CANCEL) on the dialog is clicked.DefaultDialogAction.HIDE.public void setDefaultAction(DefaultDialogAction defaultAction)
public final java.lang.String getMessage()
public void setMessage(java.lang.String newMessage)
public void setButtons(Button... buttons)
The set of buttons to use is typically set by calling one of the shortcuts such as
OK or
CANCEL. A custom set of
buttons can be passed to these shortcuts methods via the "properties" argument, or to a
directly created Dialog.
In both cases, a mixture of built-in buttons, custom buttons, and other components can
be passed. Built-in buttons can be referred to as Dialog.OK.
If you want to use one of the default button appearance use css styles like 'cancel', 'green' or 'delete'.
buttons - buttons Default value is nullpublic com.smartgwt.mobile.client.internal.test.AutoTestLocatable _getChildFromLocatorSubstring(java.lang.String substring,
int index,
java.util.List<java.lang.String> locatorArray,
com.smartgwt.mobile.client.internal.test.GetAttributeConfiguration configuration)
_getChildFromLocatorSubstring in interface com.smartgwt.mobile.client.internal.test.AutoTestLocatable_getChildFromLocatorSubstring in class Window@SGWTInternal protected void _destroyPopup()
_destroyPopup in class Windowprotected void doDefaultAction()
getDefaultAction()protected void okClick()
OK button is clicked. By default, calls doDefaultAction().protected void applyClick()
APPLY button is clicked. By default, calls doDefaultAction().protected void yesClick()
YES button is clicked. By default, calls doDefaultAction().protected void noClick()
NO button is clicked. By default, calls doDefaultAction().protected void cancelClick()
CANCEL button is clicked. By default, calls doDefaultAction().protected void doneClick()
DONE button is clicked. By default, calls doDefaultAction().public com.google.gwt.event.shared.HandlerRegistration addButtonClickHandler(ButtonClickHandler handler)
addButtonClickHandler in interface HasButtonClickHandlers