B - Concrete builder typepublic interface DialogBuilder<B extends DialogBuilder<B>> extends DialogConfigurator<B>
Dialog component builder.| Modifier and Type | Interface and Description |
|---|---|
static interface |
DialogBuilder.ConfirmDialogBuilder
Confirm
Dialog builder. |
static interface |
DialogBuilder.MessageDialogBuilder
Default message
Dialog builder. |
static interface |
DialogBuilder.QuestionDialogBuilder
Question
Dialog builder. |
static interface |
DialogBuilder.QuestionDialogCallback
Question dialog user answer callback.
|
DialogConfigurator.ClosableDialogConfigurator<C extends DialogConfigurator.ClosableDialogConfigurator<C>>ComponentConfigurator.BaseComponentConfiguratorHasSizeConfigurator.BaseHasSizeConfiguratorHasStyleConfigurator.BaseHasStyleConfiguratorHasTextConfigurator.BaseHasTextConfigurator| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIRM_BUTTON_MESSAGE_CODE
Default confirm question dialog button message code.
|
static String |
DEFAULT_DENY_BUTTON_MESSAGE_CODE
Default deny question dialog button message code.
|
static String |
DEFAULT_OK_BUTTON_MESSAGE_CODE
Default ok confirm dialog button message code.
|
FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.component.dialog.Dialog |
build()
Build the
Dialog component. |
static DialogBuilder.ConfirmDialogBuilder |
confirm()
Get a builder to create a message dialog with a OK button in the dialog toolbar which can be used to
close the dialog.
|
static DialogBuilder.MessageDialogBuilder |
message()
Get a builder to create a generic message dialog.
|
default com.vaadin.flow.component.dialog.Dialog |
open()
Build the
Dialog component and open it. |
static DialogBuilder.QuestionDialogBuilder |
question(DialogBuilder.QuestionDialogCallback questionDialogCallback)
Get a builder to create a question dialog, with a confirm button and a deny button in the
dialog toolbar which will trigger the given
questionDialogCallback to react to the user choice. |
withComponent, withComponent, withOpenedChangeListener, withToolbarComponent, withToolbarComponentcreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamecreate, fullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedcreate, styleName, styleNamescreate, create, text, text, textdeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledstatic final String DEFAULT_OK_BUTTON_MESSAGE_CODE
static final String DEFAULT_CONFIRM_BUTTON_MESSAGE_CODE
static final String DEFAULT_DENY_BUTTON_MESSAGE_CODE
com.vaadin.flow.component.dialog.Dialog build()
Dialog component.Dialog instancedefault com.vaadin.flow.component.dialog.Dialog open()
Dialog component and open it.Dialog instancestatic DialogBuilder.MessageDialogBuilder message()
DialogBuilder.MessageDialogBuilderstatic DialogBuilder.ConfirmDialogBuilder confirm()
The default OK button message localization code is DEFAULT_OK_BUTTON_MESSAGE_CODE.
DialogBuilder.ConfirmDialogBuilderstatic DialogBuilder.QuestionDialogBuilder question(DialogBuilder.QuestionDialogCallback questionDialogCallback)
questionDialogCallback to react to the user choice.
The default confirm button message localization code is DEFAULT_CONFIRM_BUTTON_MESSAGE_CODE.
The default deny button message localization code is DEFAULT_DENY_BUTTON_MESSAGE_CODE.
questionDialogCallback - The callback function use to react to the user selection (not null)DialogBuilder.QuestionDialogBuilderCopyright © 2020 The Holon Platform. All rights reserved.