java.lang.Objectnet.jspcontrols.wizard.impl.WizardTransition
Represents a state transition. In Easy Wizard a transition is an object, it can refer to its source and target states, and can validate itself. When wizard controller moves from one state to another, it iterates through transitions of current state, and validates each of them in order of their weight. The first valid transition is used to change the state.
| Field Summary | |
protected java.lang.String |
name
Human-readable name of this transition, or null if not set. |
protected IWizardStep |
source
Source node of this edge, never null. |
protected IWizardStep |
target
Target state for this transition, never null. |
protected IWizard |
wizard
Owner wizard object, reference used to access common business fields |
| Constructor Summary | |
WizardTransition(IWizard owner,
java.lang.String name,
IWizardStep target)
Constructs an transition. |
|
| Method Summary | |
java.lang.String |
getName()
Returns transition name |
IWizardStep |
getSource()
Returns source state for this transition |
IWizardStep |
getTarget()
Returns target state of this transition |
IWizard |
getWizard()
Returns owner wizard object |
void |
setSource(IWizardStep value)
Sets source state for this transition; used by wizard controller |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.jspcontrols.wizard.intf.IWizardTransition |
validate |
| Field Detail |
protected java.lang.String name
protected IWizardStep source
protected IWizardStep target
protected IWizard wizard
| Constructor Detail |
public WizardTransition(IWizard owner,
java.lang.String name,
IWizardStep target)
owner - owner wizard objectname - transition nametarget - transition target| Method Detail |
public java.lang.String getName()
getName in interface IWizardTransitionpublic IWizardStep getSource()
getSource in interface IWizardTransitionpublic IWizardStep getTarget()
getTarget in interface IWizardTransitionpublic IWizard getWizard()
getWizard in interface IWizardTransitionpublic void setSource(IWizardStep value)
setSource in interface IWizardTransitionvalue - source state for this transition