org.pietschy.wizard.models
Interface Condition


public interface Condition

An interface that is used by DynamicModel and MultiPathModel to determine if a wizard should display a particular step or group of steps.

Version:
$Revision: 1.3 $
Author:
andrewp
See Also:
DynamicModel.add(org.pietschy.wizard.WizardStep, Condition), BranchingPath.addBranch(Path, Condition)

Method Summary
 boolean evaluate(WizardModel model)
          Called to determine when the path being added using BranchingPath.addBranch(org.pietschy.wizard.models.Path, org.pietschy.wizard.models.Condition) should be traversed.
 

Method Detail

evaluate

public boolean evaluate(WizardModel model)
Called to determine when the path being added using BranchingPath.addBranch(org.pietschy.wizard.models.Path, org.pietschy.wizard.models.Condition) should be traversed. The selector is passed the current WizardModel to assist with the decision.

Parameters:
model - the WizardModel the condition should use.
Returns:
true if the .


Copyright © 2004 Andrew Pietsch.