Package io.jmix.flowui.view
Class ViewValidation.UnsavedChangesDialogResult
java.lang.Object
io.jmix.flowui.view.ViewValidation.UnsavedChangesDialogResult
- Enclosing class:
- ViewValidation
Callbacks holder for discarding unsaved changes dialog.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
discardHandler
-
cancelHandler
-
-
Constructor Details
-
UnsavedChangesDialogResult
public UnsavedChangesDialogResult()
-
-
Method Details
-
onDiscard
Sets the handler to be executed when the discard action is triggered.- Parameters:
discardHandler- the handler to execute for the discard action- Returns:
- this for method chaining
-
onCancel
Sets the handler to be executed when the cancel action is triggered.- Parameters:
cancelHandler- the handler to execute for the cancel action- Returns:
- this for method chaining
-
discard
public void discard()Executes the discard operation. -
cancel
public void cancel()Executes the cancel operation.
-