public class WizardStates
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
WizardStates() |
WizardStates(java.io.Serializable initialState) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getInPreviousStates(Step currentStep,
java.lang.Class<T> clazz)
search a previous state that implement a typical state interface, starting
search from the currentStep
|
<T> T |
getPreviousStateImplementing(Step currentStep,
java.lang.Class<T> clazz)
search a previous state that implement a typical interface, starting search
from the parent's currentStep
|
java.io.Serializable |
getState(Step step) |
java.io.Serializable |
getState(java.lang.String stepId) |
void |
setState(Step step,
java.io.Serializable ser) |
public WizardStates()
public WizardStates(java.io.Serializable initialState)
public void setState(Step step, java.io.Serializable ser)
public java.io.Serializable getState(Step step)
public java.io.Serializable getState(java.lang.String stepId)
public <T> T getPreviousStateImplementing(Step currentStep, java.lang.Class<T> clazz)
currentStep
- clazz
- public <T> T getInPreviousStates(Step currentStep, java.lang.Class<T> clazz)
currentStep
- clazz
-