Class BaseAction

java.lang.Object
ch.autumo.ui.fx.controller.actions.BaseAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
AboutWithLicenseAction, BaseStep, CustomSizeAction, ErrorAction, HTMLAction, InstallAction, RegistrationAction, RemoveAction, UpdateAction

public abstract class BaseAction extends Object implements Action
Base Action for Controllers.
  • Field Details

    • app

      protected BaseApp app
      Reference to application.
    • controller

      protected DefaultInfoController controller
      Reference to controller.
    • modality

      protected javafx.stage.Modality modality
      Stage modality.
  • Constructor Details

    • BaseAction

      public BaseAction()
      Base action. Window modality is set to Modality.APPLICATION_MODAL.
    • BaseAction

      public BaseAction(BaseApp app)
      Base action with application explicitly set and therefore not reset by any showPane-method in UI!
      Parameters:
      app - application
    • BaseAction

      public BaseAction(BaseApp app, javafx.stage.Modality modality)
      Base action with window modality and an application explicitly set and therefore not reset by any showPane- method in UI! See Modality.
      Parameters:
      app - application
      modality - window modality
    • BaseAction

      public BaseAction(javafx.stage.Modality modality)
      Base action with window modality; see Modality.
      Parameters:
      modality - window modality
  • Method Details

    • getApp

      public BaseApp getApp()
      Get the application.
      Specified by:
      getApp in interface Action
      Returns:
      application
    • setApp

      public void setApp(BaseApp app)
      Set the application.
      Specified by:
      setApp in interface Action
      Parameters:
      app - application
    • getController

      public DefaultInfoController getController()
      Get the controller.
      Specified by:
      getController in interface Action
      Returns:
      controller
    • getStage

      public javafx.stage.Stage getStage()
      Get the stage.
      Specified by:
      getStage in interface Action
      Returns:
      stage
    • getScene

      public javafx.scene.Scene getScene()
      Get the scene.
      Specified by:
      getScene in interface Action
      Returns:
      scene
    • setController

      public void setController(DefaultInfoController controller)
      Set controller.
      Specified by:
      setController in interface Action
      Parameters:
      controller - controller
    • setStageModality

      public void setStageModality(javafx.stage.Modality modality)
      Set stage modality.
      Parameters:
      modality - stage modality
    • getStageModality

      public javafx.stage.Modality getStageModality()
      Get stage modality.
      Specified by:
      getStageModality in interface Action
      Returns:
      window modality
    • run

      public final void run()
      Run the action.
      Specified by:
      run in interface Action
    • execute

      public abstract void execute()
      Description copied from interface: Action
      Execute the action.
      Specified by:
      execute in interface Action