public abstract class StepController extends Object
StepPanel
for its step.Constructor and Description |
---|
StepController() |
Modifier and Type | Method and Description |
---|---|
void |
back()
contains actions when back button was pressed.
|
abstract String |
getDescription()
returns a short description of this step to be displayed
on the description panel of the main frame
|
abstract StepModel |
getModel()
Returns the model of this step
|
abstract StepController |
getNext()
returns a StepController of the same type (n.a → n.b) or
null when this step is finished and the next step
level can be reached (n.a → (n+1).a). |
abstract StepController |
getNextStepController()
Returns the controller for the next step:
n.? → (n+1).a |
abstract JPanel |
getStepPanel()
returns the corresponding step panel
|
abstract boolean |
isFinished()
called when the Next button is pressed,
checks if all information has been collected for this step
|
abstract boolean |
isNecessary()
checks before loading the settings if this
step is needed, if not it will be skipped
|
boolean |
isStillValid()
checks if all conditions for this step controller
which has been already been displayed are up to date
|
abstract void |
loadSettings()
called when the step controller is newly initialized
or when the Back button is pressed, loads settings
from the model and creates the view
|
abstract void |
saveSettings()
Sets the missing values in the step model using a method of GUI elements.
|
public abstract void loadSettings()
public abstract boolean isFinished()
public abstract void saveSettings()
getNextStepController()
in BackNextController.nextButtonClicked()
public abstract String getDescription()
public abstract JPanel getStepPanel()
public abstract StepController getNextStepController()
StepController
public abstract boolean isNecessary()
true
, if this step is required by the current
set-up, else false
.public abstract StepController getNext()
null
when this step is finished and the next step
level can be reached (n.a → (n+1).a).StepController
or
null
public void back()
public boolean isStillValid()
public abstract StepModel getModel()
Copyright © 2011–2019 52°North. All rights reserved.