This interface defines an Easy Wizard controller. The wizard controller contains references to wizard steps and transitions, and allows to move from one step to another.
| Method Summary | |
void |
addListener(IWizardListener listener)
Adds a listener for state change event. |
boolean |
back()
Attempts to move to the previous step. |
void |
clearWizardErrors()
Clean wizard errors. |
boolean |
forward()
Attempts to move to the next step. |
IWizardStep |
getCurrentStep()
Locates the current step of this wizard. |
java.lang.String |
getCurrentStepName()
Returns a mapping name for a wizard panel. |
IWizardStep |
getSourceStep()
Locates the initial step of this wizard. |
IWizardStep |
getStepByName(java.lang.String name)
Locates a step by its name. |
java.util.Map |
getWizardErrors()
Returns errors for current wizard state. |
boolean |
isCompleted()
Returns wizard completion status. |
void |
removeAllListeners()
Removes all wizard listeners for state change event. |
void |
removeListener(IWizardListener listener)
Removes a listener for state change event. |
void |
wizardReset()
Resets certain wizard fields, like booleans. |
| Method Detail |
public void addListener(IWizardListener listener)
public boolean back()
public void clearWizardErrors()
public boolean forward()
Easy Wizard does not blindly choose a transition based on input command or event. Instead, it iterates over all transitions defined for current step, validates them, and chooses th one which is valid. If several transitions happen to be valid, the first one is chosen.
IWizardStep.addOutgoingTransition(IWizardTransition)public IWizardStep getCurrentStep()
public java.lang.String getCurrentStepName()
public IWizardStep getSourceStep()
public IWizardStep getStepByName(java.lang.String name)
name - step name
public java.util.Map getWizardErrors()
public boolean isCompleted()
public void removeAllListeners()
public void removeListener(IWizardListener listener)
public void wizardReset()