public abstract class WizardController extends java.lang.Object implements Controller
WizardControllerStepState
and
and choose the first step with a call to setStepState
.
The finish
method will be called if user completes the wizard
steps correctly.Modifier and Type | Class and Description |
---|---|
static class |
WizardController.Property
The properties that the view associated to this controller needs.
|
protected static class |
WizardController.WizardControllerStepState
State of a step in wizard.
|
Constructor and Description |
---|
WizardController(UserPreferences preferences,
ViewFactory viewFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(WizardController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
abstract void |
finish()
Requires the wizard to finish.
|
java.net.URL |
getStepIcon()
Returns the current step icon.
|
protected WizardController.WizardControllerStepState |
getStepState() |
View |
getStepView()
Returns the current step view.
|
java.lang.String |
getTitle()
Returns the wizard title.
|
DialogView |
getView()
Returns the view associated with this controller.
|
void |
goBackToPreviousStep()
Requires to the current step to go back to previous step.
|
void |
goToNextStep()
Requires to the current step to jump to next step.
|
boolean |
isBackStepEnabled()
Returns whether back step is enabled or not.
|
boolean |
isLastStep()
Returns whether this is the last step or not.
|
boolean |
isNextStepEnabled()
Returns whether next step is enabled or not.
|
boolean |
isResizable()
Returns whether the wizard is resizable or not.
|
void |
removePropertyChangeListener(WizardController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setResizable(boolean resizable)
Sets whether the wizard is resizable or not.
|
protected void |
setStepState(WizardController.WizardControllerStepState stepState)
Changes current state of controller.
|
void |
setTitle(java.lang.String title)
Sets the wizard title.
|
public WizardController(UserPreferences preferences, ViewFactory viewFactory)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(WizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(WizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public boolean isBackStepEnabled()
public boolean isNextStepEnabled()
public boolean isLastStep()
public View getStepView()
public java.net.URL getStepIcon()
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setResizable(boolean resizable)
public boolean isResizable()
protected void setStepState(WizardController.WizardControllerStepState stepState)
protected WizardController.WizardControllerStepState getStepState()
public void goToNextStep()
public void goBackToPreviousStep()
public abstract void finish()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License