net.sf.doolin.gui.wizard.rule.condition
Class FinishWizardRule

java.lang.Object
  extended by net.sf.doolin.gui.wizard.rule.condition.FinishWizardRule
All Implemented Interfaces:
WizardRule

public class FinishWizardRule
extends Object
implements WizardRule

This rule is used for views that can be always finished. It is always evaluated to true and returns WizardRule.FINISH as a result.

Author:
Damien Coraboeuf

Field Summary
 
Fields inherited from interface net.sf.doolin.gui.wizard.rule.condition.WizardRule
FINISH
 
Constructor Summary
FinishWizardRule()
           
 
Method Summary
 boolean evaluate(Object model)
          Evaluates the rule against the wizard bean.
 String getResult()
          Gets the result of this rule, either the view the wizard can be navigated to or null if the wizard can be finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinishWizardRule

public FinishWizardRule()
Method Detail

evaluate

public boolean evaluate(Object model)
Description copied from interface: WizardRule
Evaluates the rule against the wizard bean. If the evaluation returns true, the wizard can be navigated to the rule result (or Finish if this result is null).

Specified by:
evaluate in interface WizardRule
Parameters:
model - Wizard bean
Returns:
Result of the evaluation

getResult

public String getResult()
Description copied from interface: WizardRule
Gets the result of this rule, either the view the wizard can be navigated to or null if the wizard can be finished.

Specified by:
getResult in interface WizardRule
Returns:
Rule result


Copyright © 2011. All Rights Reserved.