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

public abstract class BaseStep extends BaseAction implements Step
Base step for installer.
  • Field Details

    • stepId

      protected int stepId
      Current step in installer.
    • ic

      protected InstallationController ic
      Reference to the installation controller.
  • Constructor Details

    • BaseStep

      protected BaseStep()
      Default constructor.
  • Method Details

    • initialize

      public final void initialize(int stepId, InstallationController ic, BaseApp app)
      Description copied from interface: Step
      Initialize step after creating a step with installation controller and application.
      Specified by:
      initialize in interface Step
      Parameters:
      stepId - the id of the step; it defines the installation order of the steps
      ic - installation controller
      app - application
    • getInstallationController

      public final InstallationController 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.
      Specified by:
      getStep in interface Step
      Returns:
      step number
    • isFirst

      public final boolean isFirst()
      Description copied from interface: Step
      Is first step?
      Specified by:
      isFirst in interface Step
      Returns:
      true if so
    • isLast

      public final boolean isLast()
      Description copied from interface: Step
      Is last step?
      Specified by:
      isLast in interface Step
      Returns:
      true if so
    • initialize

      public void initialize()
      Description copied from interface: Step
      Initialize for controller,
      Specified by:
      initialize in interface Step
    • 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 interface Step
    • getTitle

      public abstract String getTitle()
      Description copied from interface: Step
      Get the title for the installation step.
      Specified by:
      getTitle in interface Step
      Returns:
      title
    • compareTo

      public int compareTo(Step o)
      Specified by:
      compareTo in interface Comparable<Step>
    • last

      public final void last()
      Mark as last.
    • close

      public final void close()
      Close this step's stage.