Class BaseAction
java.lang.Object
ch.autumo.ui.fx.controller.actions.BaseAction
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
AboutWithLicenseAction, BaseStep, CustomSizeAction, EncoderAction, ErrorAction, HTMLAction, InstallAction, RegistrationAction, RemoveAction, UpdateAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseAppReference to application.protected DefaultInfoControllerReference to controller.protected 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, Modality modality) BaseAction(Modality modality) Base action with window modality; seeModality. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute()Execute the action.getApp()Get the application.Get the controller.getScene()Get the scene.getStage()Get the stage.Get stage modality.final voidrun()Run the action.voidSet the application.voidsetController(DefaultInfoController controller) Set controller.voidsetStageModality(Modality modality) Set stage modality.
-
Field Details
-
app
Reference to application. -
controller
Reference to controller. -
modality
Stage modality.
-
-
Constructor Details
-
BaseAction
public BaseAction()Base action. Window modality is set toModality.APPLICATION_MODAL. -
BaseAction
-
BaseAction
-
BaseAction
-
-
Method Details
-
getApp
-
setApp
-
getController
Get the controller.- Specified by:
getControllerin interfaceAction- Returns:
- controller
-
getStage
-
getScene
-
setController
Set controller.- Specified by:
setControllerin interfaceAction- Parameters:
controller- controller
-
setStageModality
Set stage modality.- Parameters:
modality- stage modality
-
getStageModality
Get stage modality.- Specified by:
getStageModalityin interfaceAction- Returns:
- window modality
-
run
-
execute
-