public interface Dialog
extends com.vaadin.ui.Component
Modifier and Type | Interface and Description |
---|---|
static interface |
Dialog.Builder<B extends Dialog.Builder<B>>
Base dialog builder
|
static interface |
Dialog.CloseListener
Listener for dialog closing event
|
static interface |
Dialog.DialogBuilder
Default
Dialog builder. |
static interface |
Dialog.DialogButtonConfigurator
Interface to configure
Dialog buttons at build time. |
static interface |
Dialog.QuestionCallback
Dialog.CloseListener extension which acts as callback for a question dialog to react to the user's response. |
static interface |
Dialog.QuestionDialogBuilder
Question
Dialog builder. |
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
com.vaadin.shared.Registration |
addCloseListener(Dialog.CloseListener listener)
Adds a
Dialog.CloseListener for dialog closing events. |
void |
bringToFront()
If there are currently several window dialogs visible, calling this method makes this dialog window topmost.
|
static Dialog.DialogBuilder |
builder()
Gets a builder to create and open a
Dialog window. |
void |
close()
Closes the dialog window
|
boolean |
isModal()
Returns whether the dialog is modal.
|
default void |
open()
Open the dialog window using current
UI . |
void |
open(com.vaadin.ui.UI ui)
Open the dialog window using given
UI . |
static Dialog.QuestionDialogBuilder |
question()
Gets a builder to create and open a question
Dialog window. |
void |
setModal(boolean modal)
Sets whether the dialog is modal.
|
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
boolean isModal()
true
if the dialog is modal, false
otherwisevoid setModal(boolean modal)
modal
- true
to set the dialog as modal, false
to unsetvoid bringToFront()
This method can only be called if this dialog is connected to a UI. Else an illegal state exception is thrown. Also if there are modal windows and this dialog window is not modal, and illegal state exception is thrown.
default void open()
UI
.void open(com.vaadin.ui.UI ui)
UI
.ui
- UI to which to attach the dialog windowvoid close()
com.vaadin.shared.Registration addCloseListener(Dialog.CloseListener listener)
Dialog.CloseListener
for dialog closing events.listener
- The listener to add (not null)Registration
static Dialog.DialogBuilder builder()
Dialog
window.
The dialog will present by default a single ok button.
Dialog
builderstatic Dialog.QuestionDialogBuilder question()
Dialog
window.
The dialog will present by default a yes and a no button. Use
Dialog.QuestionDialogBuilder.callback(com.holonplatform.vaadin.components.Dialog.QuestionCallback)
to handle the
user selected answer.
Dialog
builderCopyright © 2019 The Holon Platform. All rights reserved.