Package io.jmix.flowui
Interface Dialogs
- All Known Implementing Classes:
DialogsImpl
public interface Dialogs
Provides fluent interface for configuring and displaying dialogs.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents Dialog Builders with close setting.static interface
Dialogs.DialogBuilder<T extends Dialogs.DialogBuilder>
Base class for all Dialog Builders.static interface
Represents Dialog Builders that can be dragged.static interface
Represents Dialog Builders that have a text insideParagraph
component.static interface
Represents Dialog Builders that have a header.static interface
Represents Dialog Builders that have modal setting.static interface
Represents Dialog Builders that have size setting.static interface
Represents Dialog Builders that have style setting.static interface
Represents Dialog Builders that have a text insideParagraph
component as a content.static interface
Represents Dialog Builders that have theme setting.static interface
static interface
static interface
Represents Dialog Builders that can be resized. -
Method Summary
Modifier and TypeMethodDescriptionCreates message dialog builder.Creates option dialog builder.
-
Method Details
-
createOptionDialog
Dialogs.OptionDialogBuilder createOptionDialog()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();
-
createMessageDialog
Dialogs.MessageDialogBuilder createMessageDialog()Creates message dialog builder.
Example of showing a message dialog:dialogs.createMessageDialog() .withHeader("Attention") .withText("Report has been saved") .open();
- Returns:
- builder
-