net.jspcontrols.dialogs.samples.wizardaction.rules
Class SignupWizard

java.lang.Object
  extended bynet.jspcontrols.wizard.impl.Wizard
      extended bynet.jspcontrols.dialogs.samples.wizardaction.rules.SignupWizard
All Implemented Interfaces:
IWizard

public class SignupWizard
extends Wizard

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

SignupWizard

public SignupWizard(java.util.Map errors)
Constructs a signup wizard.

Method Detail

getStepConfirm

public IWizardStep getStepConfirm()
Returns third node of Signup wizard: the Confirmation node

Returns:
the Confirmation node

getStepDetails

public StepDetails getStepDetails()
Returns second node of Signup wizard: the Personalization node

Returns:
the Personalization node

getStepSignup

public StepSignup getStepSignup()
Returns first node of Signup wizard: the Signup node

Returns:
the Signup node

main

public static void main(java.lang.String[] args)
This is a simple test of this wizard. The wizard itself does not need UI interaction.

Parameters:
args - command-line params, unused

traverse

public static void traverse(IWizardStep node)
Traverses the wizard from the beginning to the end. Used for testing.

Parameters:
node - node from which to start traversal