Package io.jmix.flowui.view
Class ViewValidation.SaveChangesDialogResult
java.lang.Object
io.jmix.flowui.view.ViewValidation.SaveChangesDialogResult
- Enclosing class:
- ViewValidation
Callbacks holder for saving or discarding unsaved changes dialog.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Executes the cancel operationvoiddiscard()Executes the discard operation.Sets the handler to be executed when the cancel action is triggered.Sets the handler to be executed when the discard action is triggered.Sets the handler to be executed when the save action is triggered.voidsave()Executes the save operation.
-
Field Details
-
saveHandler
-
discardHandler
-
cancelHandler
-
-
Constructor Details
-
SaveChangesDialogResult
public SaveChangesDialogResult()
-
-
Method Details
-
onSave
Sets the handler to be executed when the save action is triggered.- Parameters:
saveHandler- the handler to execute for the save action- Returns:
- this for method chaining
-
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
-
save
public void save()Executes the save operation. -
discard
public void discard()Executes the discard operation. -
cancel
public void cancel()Executes the cancel operation
-