Package io.jmix.flowui
Interface Dialogs.Closeable<T>
- Type Parameters:
T- return type of fluent API methods
- All Known Subinterfaces:
Dialogs.MessageDialogBuilder
- All Known Implementing Classes:
DialogsImpl.MessageDialogBuilderImpl
- Enclosing interface:
- Dialogs
public static interface Dialogs.Closeable<T>
Represents Dialog Builders with close setting.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanwithCloseOnEsc(boolean closeOnEsc) Sets whether this dialog can be closed by hitting the esc-key or not.withCloseOnOutsideClick(boolean closeOnOutsideClick) Sets whether this dialog can be closed by clicking outside.
-
Method Details
-
withCloseOnOutsideClick
Sets whether this dialog can be closed by clicking outside.By default, the dialog is closable with an outside click.
- Parameters:
closeOnOutsideClick-trueto enable closing this dialog with an outside click,falseto disable it- Returns:
- builder
-
isCloseOnOutsideClick
boolean isCloseOnOutsideClick()- Returns:
trueif this dialog can be closed by an outside click,falseotherwise
-
withCloseOnEsc
Sets whether this dialog can be closed by hitting the esc-key or not.By default, the dialog is closable with esc.
- Parameters:
closeOnEsc-trueto enable closing this dialog with the esc-key,falseto disable it- Returns:
- builder
-
isCloseOnEsc
boolean isCloseOnEsc()- Returns:
trueif this dialog can be closed with the esc-key,falseotherwise
-