All Implemented Interfaces:
EventListener, javafx.event.EventHandler<javafx.event.ActionEvent>, Action, PropertyBean, Disableable

public class ExitAction extends AbstractApplicationAction
Exits the application after letting the user review and possibly save all unsaved views.
Author:
Werner Randelshofer
  • Field Details

  • Constructor Details

    • ExitAction

      public ExitAction(Application app)
      Creates a new instance.
      Parameters:
      app - the application
  • Method Details

    • onActionPerformed

      protected void onActionPerformed(javafx.event.ActionEvent event, Application app)
      Description copied from class: AbstractApplicationAction
      This method is invoked when the action is not disabled and the event is not consumed.
      Specified by:
      onActionPerformed in class AbstractApplicationAction
      Parameters:
      event - the action event
      app - the applicatoin
    • getChooser

      protected @Nullable URIChooser getChooser(FileBasedActivity view)
    • reviewChanges

      protected void reviewChanges(WorkState<Void> workState)
    • saveChangesAndReviewNext

      protected void saveChangesAndReviewNext(WorkState<Void> workState)
    • reviewNext

      protected void reviewNext(WorkState<Void> workState)
    • saveToFile

      protected void saveToFile(URI uri, javafx.scene.input.DataFormat format, WorkState<Void> workState)
    • saveToFileAndReviewNext

      protected void saveToFileAndReviewNext(URI uri, javafx.scene.input.DataFormat format, WorkState<Void> workState)
    • doExit

      protected void doExit(WorkState<Void> workState)