public class CmsAlertDialog extends CmsPopup implements I_CmsTruncable
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_DIALOG_WIDTH
The default dialog width.
|
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsAlertDialog()
Constructor.
|
CmsAlertDialog(java.lang.String title,
java.lang.String content)
Constructor.
|
CmsAlertDialog(java.lang.String title,
java.lang.String content,
java.lang.String buttonText)
Constructor.
|
CmsAlertDialog(java.lang.String title,
java.lang.String content,
java.lang.String buttonText,
java.lang.String buttonIconClass)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addBottomWidget(com.google.gwt.user.client.ui.Widget w)
Adds a widget to this dialogs bottom content.
|
void |
addTopWidget(com.google.gwt.user.client.ui.Widget w)
Adds a widget to this dialogs top content.
|
void |
center() |
CmsPushButton |
getCloseButton()
Returns the button widget.
|
protected I_CmsCloseDialogHandler |
getHandler()
Returns the dialog handler.
|
protected com.google.gwt.user.client.ui.FlowPanel |
getTopWidgets()
Returns the top widgets panel.
|
protected void |
onClose()
Executed on 'close' click.
|
protected void |
onShow()
Executed when the dialog is shown.
|
void |
setCloseIconClass(java.lang.String iconClass)
Sets the cancel/close button icon class.
|
void |
setCloseText(java.lang.String text)
Sets the close button text.
|
void |
setHandler(I_CmsCloseDialogHandler handler)
Sets the dialog handler.
|
void |
setWarningMessage(java.lang.String warningText)
Sets the warning text (HTML possible).
|
void |
show() |
void |
truncate(java.lang.String textMetricsKey,
int clientWidth)
Truncates long text and sets the original text to the title attribute.
|
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 static final int DEFAULT_DIALOG_WIDTH
public CmsAlertDialog()
public CmsAlertDialog(java.lang.String title, java.lang.String content)
title
- the title and heading of the dialogcontent
- the content textpublic CmsAlertDialog(java.lang.String title, java.lang.String content, java.lang.String buttonText)
title
- the title and heading of the dialogcontent
- the content textbuttonText
- the button textpublic CmsAlertDialog(java.lang.String title, java.lang.String content, java.lang.String buttonText, java.lang.String buttonIconClass)
title
- the title and heading of the dialogcontent
- the content textbuttonText
- the button textbuttonIconClass
- the button icon classpublic void addBottomWidget(com.google.gwt.user.client.ui.Widget w)
w
- the widget to addpublic void addTopWidget(com.google.gwt.user.client.ui.Widget w)
w
- the widget to addpublic void center()
center
在类中 CmsPopup
CmsPopup.center()
public CmsPushButton getCloseButton()
public void setCloseIconClass(java.lang.String iconClass)
iconClass
- the icon classpublic void setCloseText(java.lang.String text)
text
- the button textpublic void setHandler(I_CmsCloseDialogHandler handler)
handler
- the handler to setpublic void setWarningMessage(java.lang.String warningText)
warningText
- the warning text to setpublic void show()
show
在类中 CmsPopup
CmsPopup.show()
public void truncate(java.lang.String textMetricsKey, int clientWidth)
I_CmsTruncable
truncate
在接口中 I_CmsTruncable
textMetricsKey
- the key identifying the text metrics to useclientWidth
- the width to use in pixelsI_CmsTruncable.truncate(java.lang.String, int)
protected I_CmsCloseDialogHandler getHandler()
protected com.google.gwt.user.client.ui.FlowPanel getTopWidgets()
protected void onClose()
protected void onShow()