public class Step2Controller extends StepController
Constructor and Description |
---|
Step2Controller(Step2Model step2Model) |
Modifier and Type | Method and Description |
---|---|
String |
convertSpaceSeparatedText(String text,
String separator) |
String |
getDescription()
returns a short description of this step to be displayed
on the description panel of the main frame
|
StepModel |
getModel()
Returns the model of this step
|
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). |
StepController |
getNextStepController()
Returns the controller for the next step:
n.? → (n+1).a |
JPanel |
getStepPanel()
returns the corresponding step panel
|
boolean |
isFinished()
called when the Next button is pressed,
checks if all information has been collected for this step
|
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
|
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
|
String |
replaceWhiteSpace(String text,
String separator)
replaces any whitespace in the text by the given separator
|
void |
saveSettings()
Sets the missing values in the step model using a method of GUI elements.
|
back
public Step2Controller(Step2Model step2Model)
public String getDescription()
StepController
getDescription
in class StepController
public boolean isFinished()
StepController
isFinished
in class StepController
public StepController getNextStepController()
StepController
getNextStepController
in class StepController
StepController
public void loadSettings()
StepController
loadSettings
in class StepController
public void saveSettings()
StepController
StepController.getNextStepController()
in BackNextController.nextButtonClicked()
saveSettings
in class StepController
public String replaceWhiteSpace(String text, String separator)
text
- replacement
- public JPanel getStepPanel()
StepController
getStepPanel
in class StepController
public boolean isNecessary()
StepController
isNecessary
in class StepController
true
, if this step is required by the current
set-up, else false
.public StepController getNext()
StepController
null
when this step is finished and the next step
level can be reached (n.a → (n+1).a).getNext
in class StepController
StepController
or
null
public boolean isStillValid()
StepController
isStillValid
in class StepController
public StepModel getModel()
StepController
getModel
in class StepController
Copyright © 2011–2019 52°North. All rights reserved.