Class ViewValidation.UnsavedChangesDialogResult

java.lang.Object
io.jmix.flowui.view.ViewValidation.UnsavedChangesDialogResult
Enclosing class:
ViewValidation

public static class ViewValidation.UnsavedChangesDialogResult extends Object
Callbacks holder for discarding unsaved changes dialog.
  • Field Details

    • discardHandler

      protected Runnable discardHandler
    • cancelHandler

      protected Runnable cancelHandler
  • Constructor Details

    • UnsavedChangesDialogResult

      public UnsavedChangesDialogResult()
  • Method Details

    • onDiscard

      public ViewValidation.UnsavedChangesDialogResult onDiscard(Runnable discardHandler)
      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

      public ViewValidation.UnsavedChangesDialogResult onCancel(Runnable cancelHandler)
      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.