Class BaseStep
java.lang.Object
ch.autumo.ui.fx.controller.actions.BaseAction
ch.autumo.ui.fx.controller.actions.installer.BaseStep
- All Implemented Interfaces:
Action,Step,Comparable<Step>
- Direct Known Subclasses:
StepAbout,StepDone,StepDummy,StepDummyLast,StepLicense
Base step for installer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InstallationControllerReference to the installation controller.protected intCurrent step in installer.Fields inherited from class ch.autumo.ui.fx.controller.actions.BaseAction
app, controller, modality -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Close this step's stage.intfinal InstallationControllerGet installation controller.final intgetStep()Get this step's number starting from 1.abstract StringgetTitle()Get the title for the installation step.voidInitialize for controller,final voidinitialize(int stepId, InstallationController ic, BaseApp app) Initialize step after creating a step with installation controller and application.final booleanisFirst()Is first step?final booleanisLast()Is last step?final voidlast()Mark as last.voidCalled when the step has been overtaken by clicking the 'next' button.Methods inherited from class ch.autumo.ui.fx.controller.actions.BaseAction
execute, getApp, getController, getScene, getStage, getStageModality, run, setApp, setController, setStageModality
-
Field Details
-
stepId
protected int stepIdCurrent step in installer. -
ic
Reference to the installation controller.
-
-
Constructor Details
-
BaseStep
protected BaseStep()Default constructor.
-
-
Method Details
-
initialize
Description copied from interface:StepInitialize step after creating a step with installation controller and application.- Specified by:
initializein interfaceStep- Parameters:
stepId- the id of the step; it defines the installation order of the stepsic- installation controllerapp- application
-
getInstallationController
Get installation controller.- Returns:
- installation controller
-
getStep
public final int getStep()Description copied from interface:StepGet this step's number starting from 1. -
isFirst
public final boolean isFirst()Description copied from interface:StepIs first step? -
isLast
public final boolean isLast()Description copied from interface:StepIs last step? -
initialize
public void initialize()Description copied from interface:StepInitialize for controller,- Specified by:
initializein interfaceStep
-
steppedOver
public void steppedOver()Description copied from interface:StepCalled when the step has been overtaken by clicking the 'next' button.- Specified by:
steppedOverin interfaceStep
-
getTitle
Description copied from interface:StepGet the title for the installation step. -
compareTo
- Specified by:
compareToin interfaceComparable<Step>
-
last
public final void last()Mark as last. -
close
public final void close()Close this step's stage.
-