T - the type of the component implementing this interfacepublic interface IsModalDialog<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IsModalDialog.CloseHandler
An interface to implement handlers for closing a dialog
|
static class |
IsModalDialog.ModalSize
An enum to list modal possible zises
|
static class |
IsModalDialog.ModalType
An enum to list modal types
|
static interface |
IsModalDialog.OpenHandler
A function to implement a listener to be called when open the dialog
|
| Modifier and Type | Method and Description |
|---|---|
T |
addCloseListener(IsModalDialog.CloseHandler closeHandler) |
T |
addOpenListener(IsModalDialog.OpenHandler openHandler) |
T |
appendChild(org.jboss.elemento.IsElement<?> content) |
T |
appendChild(elemental2.dom.Node content) |
T |
appendFooterChild(org.jboss.elemento.IsElement<?> content) |
T |
appendFooterChild(elemental2.dom.Node content) |
T |
centerVertically()
make the dialog show up in the center of the screen
|
T |
close()
Close and hide the dialog
|
T |
deCenterVertically()
make the dialog show up on the top of the screen
|
boolean |
getAutoAppendAndRemove() |
DominoElement<elemental2.dom.HTMLDivElement> |
getBodyElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getContentElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getDialogElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getFooterElement() |
DominoElement<elemental2.dom.HTMLDivElement> |
getHeaderContainerElement() |
DominoElement<elemental2.dom.HTMLHeadingElement> |
getHeaderElement() |
T |
hideFooter()
Hides the footer of the dialog
|
T |
hideHeader()
hide the header of the dialog
|
T |
hideTitle()
Hide the title of the dialog
|
boolean |
isAutoFocus() |
T |
large()
set the dialog size to
IsModalDialog.ModalSize.LARGE |
T |
open()
Show the dialog
|
T |
removeCloseHandler(IsModalDialog.CloseHandler closeHandler) |
T |
removeOpenHandler(IsModalDialog.OpenHandler openHandler) |
T |
setAutoAppendAndRemove(boolean autoAppendAndRemove) |
T |
setAutoClose(boolean autoClose) |
T |
setAutoFocus(boolean autoFocus) |
T |
setModalColor(Color color) |
T |
setTitle(String title) |
T |
showFooter()
Show the footer of the dialog
|
T |
showHeader()
Show the header of the dialog
|
T |
showTitle()
Show the title of the dialog
|
T |
small()
set the dialog size to
IsModalDialog.ModalSize.SMALL |
T appendChild(elemental2.dom.Node content)
content - Node to be appended to the modal bodyT appendChild(org.jboss.elemento.IsElement<?> content)
content - IsElement to be appended to the modal bodyT appendFooterChild(elemental2.dom.Node content)
content - Node to be appended to the modal footerT appendFooterChild(org.jboss.elemento.IsElement<?> content)
content - IsElement to be appended to the modal footerT large()
IsModalDialog.ModalSize.LARGET small()
IsModalDialog.ModalSize.SMALLT setModalColor(Color color)
color - Color of the modal header and bodyT setAutoClose(boolean autoClose)
autoClose - boolean, true to close the dialog by pressing escape keyT open()
T close()
T hideFooter()
T showFooter()
T hideHeader()
T showHeader()
T hideTitle()
T showTitle()
DominoElement<elemental2.dom.HTMLDivElement> getDialogElement()
DominoElement<elemental2.dom.HTMLDivElement> getContentElement()
DominoElement<elemental2.dom.HTMLHeadingElement> getHeaderElement()
DominoElement<elemental2.dom.HTMLDivElement> getHeaderContainerElement()
DominoElement<elemental2.dom.HTMLDivElement> getBodyElement()
DominoElement<elemental2.dom.HTMLDivElement> getFooterElement()
T addOpenListener(IsModalDialog.OpenHandler openHandler)
openHandler - IsModalDialog.OpenHandlerT addCloseListener(IsModalDialog.CloseHandler closeHandler)
closeHandler - IsModalDialog.CloseHandlerT removeOpenHandler(IsModalDialog.OpenHandler openHandler)
openHandler - IsModalDialog.OpenHandlerT removeCloseHandler(IsModalDialog.CloseHandler closeHandler)
closeHandler - IsModalDialog.CloseHandlerT setAutoAppendAndRemove(boolean autoAppendAndRemove)
autoAppendAndRemove - boolean, true to automatically remove and append the modal every
time we open itboolean getAutoAppendAndRemove()
T centerVertically()
T deCenterVertically()
boolean isAutoFocus()
T setAutoFocus(boolean autoFocus)
autoFocus - boolean, true if the modal should auto-focus first focusable element when
opened.Copyright © 2019–2022 Dominokit. All rights reserved.