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

java.lang.Object
  extended bynet.jspcontrols.wizard.impl.WizardStep
      extended bynet.jspcontrols.dialogs.samples.wizardaction.rules.StepSignup
All Implemented Interfaces:
IWizardStep

public class StepSignup
extends WizardStep

Identification node of Signup wizard, the first node of the wizard. it allows to enter name and password of a new user, and also to choose an option to provide additional information (the information itself would be provided on the second step: Personalization)


Field Summary
 
Fields inherited from class net.jspcontrols.wizard.impl.WizardStep
incomingTransition, stateName, wizard
 
Constructor Summary
StepSignup(SignupWizard value, java.lang.String name)
          Creates Signup node
 
Method Summary
 java.lang.String getConfirmPassword()
          Returns repeated user password
 java.lang.String getName()
          Returns user name stored in the wizard
 java.lang.String getPassword()
          Returns user password stored in the wizard as cleartext.
 boolean getPersonalize()
          Returns true if personalization flag is set.
 void resetBooleans()
          Instructs the node to clear boolean values.
 void setConfirmPassword(java.lang.String confirmPassword)
          Sets repeated user password in the wizard
 void setName(java.lang.String name)
          Sets user name in the wizard
 void setPassword(java.lang.String password)
          Sets user password in the wizard
 void setPersonalize(boolean personalize)
          Sets personalization flag.
 boolean validateNameAndPassword()
          Validates name and password.
 
Methods inherited from class net.jspcontrols.wizard.impl.WizardStep
addOutgoingTransition, checkTraverseBack, getIncomingTransition, getOutgoingTransition, getOutgoingTransitions, getStateName, getWizard, isCheckpoint, isStateInPath, setCheckpoint, setIncomingTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepSignup

public StepSignup(SignupWizard value,
                  java.lang.String name)
Creates Signup node

Parameters:
value - owner wizard object, used to reference wizard-wide objects like error messages
name - name of this node
Method Detail

getConfirmPassword

public java.lang.String getConfirmPassword()
Returns repeated user password


getName

public java.lang.String getName()
Returns user name stored in the wizard

Returns:
user name

getPassword

public java.lang.String getPassword()
Returns user password stored in the wizard as cleartext. It is up to the UI layer how to display it.


getPersonalize

public boolean getPersonalize()
Returns true if personalization flag is set. This flag is used to determine if wizard should display Personalization step.

Returns:
true if a user selected to provide additional information about himself.

resetBooleans

public void resetBooleans()
Instructs the node to clear boolean values. Usually called before the properties are about to be updated.


setConfirmPassword

public void setConfirmPassword(java.lang.String confirmPassword)
Sets repeated user password in the wizard

Parameters:
confirmPassword - user password to set in the wizard

setName

public void setName(java.lang.String name)
Sets user name in the wizard

Parameters:
name - user name to set in the wizard

setPassword

public void setPassword(java.lang.String password)
Sets user password in the wizard

Parameters:
password - user password to set in the wizard

setPersonalize

public void setPersonalize(boolean personalize)
Sets personalization flag.

Parameters:
personalize - true if user wants to provide additional information about himself.

validateNameAndPassword

public boolean validateNameAndPassword()
Validates name and password. Validation is normally performed in an outgoing edge, but this common functionality is used by both outgoing edges.

Returns:
true if name and password conform to basic name/password requirements