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.
| Method Summary | |
java.lang.String |
getName()
Returns human-readable name of the transition, or null if not set. |
IWizardStep |
getSource()
Returns source of this state, cannot be null. |
IWizardStep |
getTarget()
Returns target state of this transition, cannot be null. |
IWizard |
getWizard()
Returns wizard controller object, which owns this state |
void |
setSource(IWizardStep value)
Sets source state for this transition |
boolean |
validate()
Validates this transition. |
| Method Detail |
public java.lang.String getName()
public IWizardStep getSource()
public IWizardStep getTarget()
public IWizard getWizard()
public void setSource(IWizardStep value)
value - source state for this transitionpublic boolean validate()