java.lang.Objectnet.jspcontrols.wizard.impl.Wizard
net.jspcontrols.dialogs.samples.wizardaction.rules.SignupWizard
This class defines a simple signup wizard. The wizard has three steps with the second step being optional.
The first step asks a new user for a login name and a password he would like to use. Also the first step asks if a user wants to supply additional information about himself. If yes, the second step is made available, it allows to input the favorite book and the favorite movie of the user. The third step simply shows user's selections.
This class stores some UI-related information like error messages, but efforts were made to design it agnostic of particular web framework.
| Field Summary |
| Fields inherited from class net.jspcontrols.wizard.impl.Wizard |
currentState, errors, listeners, sourceState |
| Constructor Summary | |
SignupWizard(java.util.Map errors)
Constructs a signup wizard. |
|
| Method Summary | |
IWizardStep |
getStepConfirm()
Returns third node of Signup wizard: the Confirmation node |
StepDetails |
getStepDetails()
Returns second node of Signup wizard: the Personalization node |
StepSignup |
getStepSignup()
Returns first node of Signup wizard: the Signup node |
static void |
main(java.lang.String[] args)
This is a simple test of this wizard. |
static void |
traverse(IWizardStep node)
Traverses the wizard from the beginning to the end. |
| Methods inherited from class net.jspcontrols.wizard.impl.Wizard |
addListener, back, canLeave, clearWizardErrors, findNode, forward, getCurrentStep, getCurrentStepName, getListeners, getSourceStep, getStepByName, getWizardErrors, isCompleted, isLastStep, removeAllListeners, removeListener, wizardReset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SignupWizard(java.util.Map errors)
| Method Detail |
public IWizardStep getStepConfirm()
public StepDetails getStepDetails()
public StepSignup getStepSignup()
public static void main(java.lang.String[] args)
args - command-line params, unusedpublic static void traverse(IWizardStep node)
node - node from which to start traversal