public class MessageDialog extends BaseModal<MessageDialog>
MessageDialog.createMessage(
"Here\'s a message!", () -> Notification.create("Dialog closed").show();
BaseModal.ModalBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerIsModalDialog.CloseHandler, IsModalDialog.ModalSize, IsModalDialog.ModalType, IsModalDialog.OpenHandlermodalElementelement| Constructor and Description |
|---|
MessageDialog()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
MessageDialog |
appendHeaderChild(org.jboss.elemento.IsElement<?> content) |
MessageDialog |
appendHeaderChild(elemental2.dom.Node content) |
static MessageDialog |
createMessage(elemental2.dom.Node content)
Creates an instance and initialize it with custom content
|
static MessageDialog |
createMessage(elemental2.dom.Node content,
IsModalDialog.CloseHandler closeHandler)
Creates an instance and initialize it with custom content a close handler
|
static MessageDialog |
createMessage(elemental2.dom.Node content,
IsModalDialog.CloseHandler closeHandler,
Supplier<Button> okButtonProvider)
Creates an instance and initialize it with custom content a close handler and an ok action
button
|
static MessageDialog |
createMessage(elemental2.dom.Node content,
Supplier<Button> okButtonProvider)
Creates an instance and initialize it with custom content and an Ok action button
|
static MessageDialog |
createMessage(String message)
Creates an instance and initialize it with a text message
|
static MessageDialog |
createMessage(String message,
IsModalDialog.CloseHandler closeHandler)
Creates an instance and initialize it with a text message and a close handler
|
static MessageDialog |
createMessage(String message,
IsModalDialog.CloseHandler closeHandler,
Supplier<Button> okButtonProvider)
Creates an instance and initialize it with a text message and a close handler and an ok action
button
|
static MessageDialog |
createMessage(String title,
elemental2.dom.Node content)
Creates an instance and initialize it with a title and custom content
|
static MessageDialog |
createMessage(String title,
elemental2.dom.Node content,
IsModalDialog.CloseHandler closeHandler)
Creates an instance and initialize it with a title and custom content and a close handler
|
static MessageDialog |
createMessage(String title,
elemental2.dom.Node content,
IsModalDialog.CloseHandler closeHandler,
Supplier<Button> okButtonProvider)
Creates an instance and initialize it with a title and custom content a close handler and an ok
action button
|
static MessageDialog |
createMessage(String title,
elemental2.dom.Node content,
Supplier<Button> okButtonProvider)
Creates an instance and initialize it with a title and custom content and an ok action button
|
static MessageDialog |
createMessage(String title,
String message)
Creates an instance and initialize it with a title and a text message
|
static MessageDialog |
createMessage(String title,
String message,
IsModalDialog.CloseHandler closeHandler)
Creates an instance and initialize it with a title and a text message and a close handler
|
MessageDialog |
error()
Set a default
Icons#ALL#error() icon as the dialog content with an animation transition
to indicate a failed operation |
MessageDialog |
error(BaseIcon<?> icon)
Set the icon as the dialog content with an animation transition to indicate a failed operation
|
Button |
getOkButton() |
MessageDialog |
setIconColor(Color iconColorStart,
Color iconColorEnd)
Change the dialog icon colors transitions
|
MessageDialog |
setOkButtonText(String text)
Change the ok button text
|
MessageDialog |
success()
Set a default
Icons#ALL#done() icon as the dialog content with an animation transition
to indicate a success operation |
MessageDialog |
success(BaseIcon<?> icon)
Set the icon as the dialog content with an animation transition to indicate a success operation
|
MessageDialog |
warning()
Set a default
Icons#ALL#clear() icon as the dialog content with an animation transition
to indicate a warning operation |
MessageDialog |
warning(BaseIcon<?> icon)
Set the icon as the dialog content with an animation transition to indicate a warning operation
|
addCloseListener, addOpenListener, appendChild, appendChild, appendFooterChild, appendFooterChild, centerVertically, close, deCenterVertically, disable, element, enable, getAutoAppendAndRemove, getBodyElement, getContentElement, getDialogElement, getFooterElement, getHeaderContainerElement, getHeaderElement, hideFooter, hideHeader, hideTitle, isAutoClose, isAutoFocus, isEnabled, isModal, isOpen, large, open, removeCloseHandler, removeOpenHandler, setAutoAppendAndRemove, setAutoClose, setAutoFocus, setModal, setModalColor, setSize, setTitle, setType, showFooter, showHeader, showTitle, smalladd, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, elevate, elevate, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic static MessageDialog createMessage(elemental2.dom.Node content)
content - Nodepublic static MessageDialog createMessage(elemental2.dom.Node content, Supplier<Button> okButtonProvider)
public static MessageDialog createMessage(String title, elemental2.dom.Node content)
title - Stringcontent - Nodepublic static MessageDialog createMessage(String title, elemental2.dom.Node content, Supplier<Button> okButtonProvider)
public static MessageDialog createMessage(String title, elemental2.dom.Node content, IsModalDialog.CloseHandler closeHandler)
title - Stringcontent - NodecloseHandler - CloseHandlerpublic static MessageDialog createMessage(String title, elemental2.dom.Node content, IsModalDialog.CloseHandler closeHandler, Supplier<Button> okButtonProvider)
public static MessageDialog createMessage(elemental2.dom.Node content, IsModalDialog.CloseHandler closeHandler)
content - NodecloseHandler - CloseHandlerpublic static MessageDialog createMessage(elemental2.dom.Node content, IsModalDialog.CloseHandler closeHandler, Supplier<Button> okButtonProvider)
public MessageDialog setOkButtonText(String text)
text - String button textpublic static MessageDialog createMessage(String message)
message - Stringpublic static MessageDialog createMessage(String title, String message)
title - Stringmessage - Stringpublic static MessageDialog createMessage(String title, String message, IsModalDialog.CloseHandler closeHandler)
title - Stringmessage - StringcloseHandler - CloseHandlerpublic static MessageDialog createMessage(String message, IsModalDialog.CloseHandler closeHandler)
message - StringcloseHandler - CloseHandlerpublic static MessageDialog createMessage(String message, IsModalDialog.CloseHandler closeHandler, Supplier<Button> okButtonProvider)
public MessageDialog success(BaseIcon<?> icon)
icon - BaseIconpublic MessageDialog success()
Icons#ALL#done() icon as the dialog content with an animation transition
to indicate a success operationpublic MessageDialog error(BaseIcon<?> icon)
icon - BaseIconpublic MessageDialog error()
Icons#ALL#error() icon as the dialog content with an animation transition
to indicate a failed operationpublic MessageDialog warning(BaseIcon<?> icon)
icon - BaseIconpublic MessageDialog warning()
Icons#ALL#clear() icon as the dialog content with an animation transition
to indicate a warning operationpublic MessageDialog setIconColor(Color iconColorStart, Color iconColorEnd)
public MessageDialog appendHeaderChild(elemental2.dom.Node content)
content - Node to be appended to the dialog bodypublic MessageDialog appendHeaderChild(org.jboss.elemento.IsElement<?> content)
content - IsElement to be appended to the dialog headerCopyright © 2019–2022 Dominokit. All rights reserved.