Class ViewValidation.SaveChangesDialogResult

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

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

    • saveHandler

      protected Runnable saveHandler
    • discardHandler

      protected Runnable discardHandler
    • cancelHandler

      protected Runnable cancelHandler
  • Constructor Details

    • SaveChangesDialogResult

      public SaveChangesDialogResult()
  • Method Details

    • onSave

      public ViewValidation.SaveChangesDialogResult onSave(Runnable saveHandler)
      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

      public ViewValidation.SaveChangesDialogResult 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.SaveChangesDialogResult 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
    • save

      public void save()
      Executes the save operation.
    • discard

      public void discard()
      Executes the discard operation.
    • cancel

      public void cancel()
      Executes the cancel operation