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
Modifier and TypeFieldDescriptionprotected BaseApp
Reference to application.protected DefaultInfoController
Reference to controller.protected javafx.stage.Modality
Stage modality. -
Constructor Summary
ConstructorDescriptionBase 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 void
execute()
Execute the action.getApp()
Get the application.Get the controller.javafx.scene.Scene
getScene()
Get the scene.javafx.stage.Stage
getStage()
Get the stage.javafx.stage.Modality
Get stage modality.final void
run()
Run the action.void
Set the application.void
setController
(DefaultInfoController controller) Set controller.void
setStageModality
(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:
getController
in 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:
setController
in 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:
getStageModality
in interfaceAction
- Returns:
- window modality
-
run
public final void run()Run the action. -
execute
public abstract void execute()Description copied from interface:Action
Execute the action.
-