@JsType(namespace="hal.ui") public class Dialog extends Object implements org.jboss.gwt.elemento.core.IsElement
Callback
which always closes the dialog or a Dialog.ResultCallback with a boolean return value. A value of true
indicates that the dialog should be closed whereas false keeps the dialog open. You can add as many buttons
as you like, but only one of them should be the primary button.
There are convenience methods to add primary and secondary buttons which come with pre-defined placements. If you want to define the placement by yourself use negative numbers to place the buttons on the left side and positive numbers for the right side. On each side the buttons are ordered according to the placement.
| Modifier and Type | Class and Description |
|---|---|
static class |
Dialog.Builder |
static interface |
Dialog.ResultCallback
A button callback which returns a boolean to indicate whether the dialog should be closed or stay open.
|
static class |
Dialog.Size |
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIMARY_POSITION |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
elemental2.dom.HTMLButtonElement |
getButton(int position) |
static boolean |
isOpen() |
void |
registerAttachable(Attachable first,
Attachable... rest) |
void |
setTitle(String title) |
void |
show() |
@JsIgnore public static final int PRIMARY_POSITION
@JsIgnore public static boolean isOpen()
@JsIgnore public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElement@JsIgnore public void registerAttachable(Attachable first, Attachable... rest)
public void show()
@JsIgnore public void setTitle(String title)
@JsIgnore public elemental2.dom.HTMLButtonElement getButton(int position)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.