public class CmsAcceptDeclineCancelDialog extends CmsAlertDialog
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
DEFAULT_DIALOG_WIDTH
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsAcceptDeclineCancelDialog(java.lang.String title,
java.lang.String content)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
activateButtons(boolean activate)
Sets the buttons enabled.
|
void |
center() |
protected I_CmsAcceptDeclineCancelHandler |
getHandler()
Returns the dialog handler.
|
protected void |
onAccept()
Executed on accept click.
|
protected void |
onClose()
Executed on 'close' click.
|
protected void |
onDecline()
Executed on decline click.
|
void |
setAcceptIconClass(java.lang.String iconClass)
Sets the accept button icon class.
|
void |
setAcceptText(java.lang.String text)
Sets the accept button text.
|
void |
setDeclineIconClass(java.lang.String iconClass)
Sets the decline button icon class.
|
void |
setDeclineText(java.lang.String text)
Sets the decline button text.
|
void |
setHandler(I_CmsAcceptDeclineCancelHandler handler)
Sets the dialog handler.
|
addBottomWidget, addTopWidget, getCloseButton, getTopWidgets, onShow, setCloseIconClass, setCloseText, setHandler, setWarningMessage, show, 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 CmsAcceptDeclineCancelDialog(java.lang.String title, java.lang.String content)
title
- the dialog titlecontent
- the dialog contentpublic void center()
center
在类中 CmsAlertDialog
CmsAlertDialog.center()
public void setAcceptIconClass(java.lang.String iconClass)
iconClass
- the icon classpublic void setAcceptText(java.lang.String text)
text
- the button textpublic void setDeclineIconClass(java.lang.String iconClass)
iconClass
- the icon classpublic void setDeclineText(java.lang.String text)
text
- the button textpublic void setHandler(I_CmsAcceptDeclineCancelHandler handler)
handler
- the handler to setprotected void activateButtons(boolean activate)
activate
- true
to activate, false
to deactivateprotected I_CmsAcceptDeclineCancelHandler getHandler()
CmsAlertDialog
getHandler
在类中 CmsAlertDialog
CmsAlertDialog.getHandler()
protected void onAccept()
protected void onClose()
CmsAlertDialog
onClose
在类中 CmsAlertDialog
CmsAlertDialog.onClose()
protected void onDecline()