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
Base Action for Controllers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseAppReference to application.protected DefaultInfoControllerReference to controller.protected javafx.stage.ModalityStage modality. -
Constructor Summary
ConstructorsConstructorDescriptionBase action.BaseAction(BaseApp app) Base action with application explicitly set and therefore not reset by any showPane-method inUI!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 inUI! SeeModality.BaseAction(javafx.stage.Modality modality) Base action with window modality; seeModality. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute()Execute the action.getApp()Get the application.Get the controller.javafx.scene.ScenegetScene()Get the scene.javafx.stage.StagegetStage()Get the stage.javafx.stage.ModalityGet stage modality.final voidrun()Run the action.voidSet the application.voidsetController(DefaultInfoController controller) Set controller.voidsetStageModality(javafx.stage.Modality modality) Set stage modality.
-
Field Details
-
app
Reference to application. -
controller
Reference to controller. -
modality
protected javafx.stage.Modality modalityStage modality.
-
-
Constructor Details
-
BaseAction
public BaseAction()Base action. Window modality is set toModality.APPLICATION_MODAL. -
BaseAction
Base action with application explicitly set and therefore not reset by any showPane-method inUI!- Parameters:
app- application
-
BaseAction
Base action with window modality and an application explicitly set and therefore not reset by any showPane- method inUI! SeeModality.- Parameters:
app- applicationmodality- window modality
-
BaseAction
public BaseAction(javafx.stage.Modality modality) Base action with window modality; seeModality.- Parameters:
modality- window modality
-
-
Method Details
-
getApp
Get the application. -
setApp
Set the application. -
getController
Get the controller.- Specified by:
getControllerin interfaceAction- Returns:
- controller
-
getStage
public javafx.stage.Stage getStage()Get the stage. -
getScene
public javafx.scene.Scene getScene()Get the scene. -
setController
Set controller.- Specified by:
setControllerin interfaceAction- 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:
getStageModalityin interfaceAction- Returns:
- window modality
-
run
public final void run()Run the action. -
execute
public abstract void execute()Description copied from interface:ActionExecute the action.
-