|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.wizard.models.Path
org.pietschy.wizard.models.BranchingPath
BranchingPaths represent a sequence of WizardStep
s that has multiple choices for
the next path to traverse.
addBranch(org.pietschy.wizard.models.Path, org.pietschy.wizard.models.Condition)
,
Path.addStep(org.pietschy.wizard.WizardStep)
Constructor Summary | |
BranchingPath()
Creates a new empth BranchingPath. |
|
BranchingPath(WizardStep step)
Creates a new BranchingPath that is initialized with the specified step. |
Method Summary | |
void |
acceptVisitor(PathVisitor visitor)
|
void |
addBranch(Path path,
Condition condition)
Adds a possible branch from this path. |
protected Path |
getNextPath(MultiPathModel model)
Gets the path to traverse after this path has exhausted all its steps. |
void |
visitBranches(PathVisitor visitor)
|
Methods inherited from class org.pietschy.wizard.models.Path |
addStep, contains, firstStep, getSteps, isFirstStep, isLastStep, lastStep, nextStep, previousStep |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BranchingPath()
public BranchingPath(WizardStep step)
step
- the first step of the path.Method Detail |
protected Path getNextPath(MultiPathModel model)
getNextPath
in class Path
java.lang.IllegalStateException
- if no matching path is found.public void addBranch(Path path, Condition condition)
path
- the Path
to traverse based when the condition returns true.condition
- a Condition
that activates this path.public void acceptVisitor(PathVisitor visitor)
acceptVisitor
in class Path
public void visitBranches(PathVisitor visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |