com.alkacon.geranium.client.ui
public class AlertDialog extends Popup implements I_Truncable
com.google.gwt.user.client.ui.PopupPanel.PositionCallbackm_windowWidth| Constructor and Description |
|---|
AlertDialog()
Constructor.
|
AlertDialog(java.lang.String title,
java.lang.String content)
Constructor.
|
AlertDialog(java.lang.String title,
java.lang.String content,
java.lang.String buttonText)
Constructor.
|
AlertDialog(java.lang.String title,
java.lang.String content,
java.lang.String buttonText,
java.lang.String buttonIconClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
PushButton |
getCloseButton()
Returns the button widget.
|
protected I_CloseDialogHandler |
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_CloseDialogHandler 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, hasCaption, hide, insert, insert, insertFront, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, showArrow, wrapWithBorderPaddingaddAutoHidePartner, 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, showRelativeToaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabledpublic AlertDialog()
public AlertDialog(java.lang.String title,
java.lang.String content)
title - the title and heading of the dialogcontent - the content textpublic AlertDialog(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 AlertDialog(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 in class PopupPopup.center()public PushButton 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_CloseDialogHandler handler)
handler - the handler to setpublic void setWarningMessage(java.lang.String warningText)
warningText - the warning text to setpublic void show()
show in class PopupPopup.show()public void truncate(java.lang.String textMetricsKey,
int clientWidth)
I_Truncabletruncate in interface I_TruncabletextMetricsKey - the key identifying the text metrics to useclientWidth - the width to use in pixelsI_Truncable.truncate(java.lang.String, int)protected I_CloseDialogHandler getHandler()
protected com.google.gwt.user.client.ui.FlowPanel getTopWidgets()
protected void onClose()
protected void onShow()