net.sf.doolin.gui.wizard.rule
Interface WizardRules<B>

Type Parameters:
B - Type of bean for the wizard
All Known Implementing Classes:
AbstractWizardRules, ConditionWizardRules, SequenceWizardRules

public interface WizardRules<B>

Defines the navigation rules for a wizard.

Author:
Damien Coraboeuf

Method Summary
 boolean canFinish(String currentViewId, B model)
          Checks if the wizard can be finished in its current status.
 String getNext(String currentViewId, B model)
          Returns the next it is possible to navigate to or null if no next view is available.
 GUIAction getTransitionAction(String viewId)
          Gets the transaction action to execute when navigating to the given view.
 

Method Detail

canFinish

boolean canFinish(String currentViewId,
                  B model)
Checks if the wizard can be finished in its current status.

Parameters:
currentViewId - Current view name
model - Wizard bean
Returns:
true if the wizard can be finished

getNext

String getNext(String currentViewId,
               B model)
Returns the next it is possible to navigate to or null if no next view is available.

Parameters:
currentViewId - Current view name
model - Wizard bean
Returns:
Name of the next view or null

getTransitionAction

GUIAction getTransitionAction(String viewId)
Gets the transaction action to execute when navigating to the given view.

Parameters:
viewId - View to navigate to
Returns:
Action to execute or null if none is to be executed


Copyright © 2011. All Rights Reserved.