public class CmsConfirmDialog extends CmsAlertDialog
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
DEFAULT_DIALOG_WIDTH
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsConfirmDialog(java.lang.String caption)
Constructor.
|
CmsConfirmDialog(java.lang.String caption,
java.lang.String content)
The constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
center() |
protected I_CmsConfirmDialogHandler |
getHandler()
Returns the dialog handler.
|
CmsPushButton |
getOkButton()
Returns the 'OK' button widget.
|
protected void |
onOk()
Executed on 'ok' click.
|
void |
setHandler(I_CmsConfirmDialogHandler handler)
Sets the dialog handler.
|
void |
setOkIconClass(java.lang.String iconClass)
Sets the accept button icon class.
|
void |
setOkText(java.lang.String text)
Sets the accept button text.
|
void |
show() |
addBottomWidget, addTopWidget, getCloseButton, getTopWidgets, onClose, onShow, setCloseIconClass, setCloseText, setHandler, setWarningMessage, truncate
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, hide, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, showArrow, wrapWithBorderPadding
addAutoHidePartner, addCloseHandler, addPopupListener, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
public CmsConfirmDialog(java.lang.String caption)
caption
- the title for this dialogpublic CmsConfirmDialog(java.lang.String caption, java.lang.String content)
caption
- the title and heading of the dialogcontent
- the content textpublic void center()
center
在类中 CmsAlertDialog
CmsPopup.center()
public CmsPushButton getOkButton()
public void setHandler(I_CmsConfirmDialogHandler handler)
handler
- the handler to setpublic void setOkIconClass(java.lang.String iconClass)
iconClass
- the icon classpublic void setOkText(java.lang.String text)
text
- the button textpublic void show()
show
在类中 CmsAlertDialog
CmsPopup.show()
protected I_CmsConfirmDialogHandler getHandler()
CmsAlertDialog
getHandler
在类中 CmsAlertDialog
CmsAlertDialog.getHandler()
protected void onOk()