org.pietschy.wizard.models
Class SimplePath

java.lang.Object
  extended byorg.pietschy.wizard.models.Path
      extended byorg.pietschy.wizard.models.SimplePath

public class SimplePath
extends Path

A SimplePath represents a sequence of wizard steps whose next path is determined at compile time. That is, SimplePaths can't branch.

See Also:
setNextPath(org.pietschy.wizard.models.Path), Path.addStep(org.pietschy.wizard.WizardStep)

Constructor Summary
SimplePath()
           
SimplePath(WizardStep step)
          Creates a new SimplePath that is initialized with the specified step.
 
Method Summary
 void acceptVisitor(PathVisitor visitor)
           
 Path getNextPath()
           
protected  Path getNextPath(MultiPathModel model)
          Gets the path that will follow this one.
 void setNextPath(Path nextPath)
           
 void visitNextPath(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

SimplePath

public SimplePath()

SimplePath

public SimplePath(WizardStep step)
Creates a new SimplePath that is initialized with the specified step.

Parameters:
step - the first step of the path.
Method Detail

getNextPath

protected Path getNextPath(MultiPathModel model)
Description copied from class: Path
Gets the path that will follow this one.

Specified by:
getNextPath in class Path
Returns:
the next path.

getNextPath

public Path getNextPath()

setNextPath

public void setNextPath(Path nextPath)

acceptVisitor

public void acceptVisitor(PathVisitor visitor)
Specified by:
acceptVisitor in class Path

visitNextPath

public void visitNextPath(PathVisitor visitor)


Copyright © 2004 Andrew Pietsch.