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 InstallationController
Reference to the installation controller.protected int
Current 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 void
close()
Close this step's stage.int
final InstallationController
Get installation controller.final int
getStep()
Get this step's number starting from 1.abstract String
getTitle()
Get the title for the installation step.void
Initialize for controller,final void
initialize
(int stepId, InstallationController ic, BaseApp app) Initialize step after creating a step with installation controller and application.final boolean
isFirst()
Is first step?final boolean
isLast()
Is last step?final void
last()
Mark as last.void
Called 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:Step
Initialize step after creating a step with installation controller and application.- Specified by:
initialize
in 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:Step
Get this step's number starting from 1. -
isFirst
public final boolean isFirst()Description copied from interface:Step
Is first step? -
isLast
public final boolean isLast()Description copied from interface:Step
Is last step? -
initialize
public void initialize()Description copied from interface:Step
Initialize for controller,- Specified by:
initialize
in interfaceStep
-
steppedOver
public void steppedOver()Description copied from interface:Step
Called when the step has been overtaken by clicking the 'next' button.- Specified by:
steppedOver
in interfaceStep
-
getTitle
Description copied from interface:Step
Get the title for the installation step. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Step>
-
last
public final void last()Mark as last. -
close
public final void close()Close this step's stage.
-