Package io.jmix.flowui.impl
Class DialogsImpl
java.lang.Object
io.jmix.flowui.impl.DialogsImpl
- All Implemented Interfaces:
Dialogs
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
Nested classes/interfaces inherited from interface io.jmix.flowui.Dialogs
Dialogs.Closeable<T>, Dialogs.DialogBuilder<T extends Dialogs.DialogBuilder>, Dialogs.Draggable<T>, Dialogs.HasContent<T>, Dialogs.HasHeader<T>, Dialogs.HasModal<T>, Dialogs.HasSize<T>, Dialogs.HasStyle<T>, Dialogs.HasText<T>, Dialogs.HasTheme<T>, Dialogs.MessageDialogBuilder, Dialogs.OptionDialogBuilder, Dialogs.Resizable<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected FlowuiViewProperties
protected Messages
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.button.Button
createButton
(Action action, com.vaadin.flow.component.dialog.Dialog dialog) Creates message dialog builder.Creates option dialog builder.
-
Field Details
-
WIDTH
- See Also:
-
messages
-
flowUiViewProperties
-
-
Constructor Details
-
DialogsImpl
-
-
Method Details
-
createOptionDialog
Description copied from interface:Dialogs
Creates option dialog builder.
Example of showing an option dialog:dialogs.createOptionDialog() .withHeader("Confirm") .withText("Do you want to discard data?") .withActions( new DialogAction(DialogAction.Type.YES).withHandler(e -> { // YES option selected }), new DialogAction(DialogAction.Type.NO).withHandler(e -> { // NO option selected }) ) .open();
- Specified by:
createOptionDialog
in interfaceDialogs
-
createMessageDialog
Description copied from interface:Dialogs
Creates message dialog builder.
Example of showing a message dialog:dialogs.createMessageDialog() .withHeader("Attention") .withText("Report has been saved") .open();
- Specified by:
createMessageDialog
in interfaceDialogs
- Returns:
- builder
-
createButton
protected com.vaadin.flow.component.button.Button createButton(Action action, com.vaadin.flow.component.dialog.Dialog dialog)
-