com.sri.emo.wizard.selection
Class EmoSelectionWizard

java.lang.Object
  extended by com.sri.emo.wizard.AbstractWizard
      extended by com.sri.emo.wizard.defaults.SequentialWizard
          extended by com.sri.emo.wizard.selection.EmoSelectionWizard
All Implemented Interfaces:
Wizard, Serializable
Direct Known Subclasses:
ChainedSelectionWizard

public class EmoSelectionWizard
extends SequentialWizard

Overrides Sequential Wizard to allow processing of the EMO Decision Matrix for processing finish.

The Selection Wizard has the following processess:

Selection Wizard State Diagram Selection Wizard State Diagram

Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
EmoSelectionWizard(WizardMonitor wizMonitor, WizardPage[] steps)
          Constructor that the Wizard Factory uses to instantiate the sequential wizard.
 
Method Summary
protected  boolean onNextPage(WizardPage previousPage, WizardPage nextPage, Serializable previousPageData)
          This particular implementation performs some pre-processing for some special pages.
 Object processFinish(WizardPage src, Serializable data, Map additionalParams)
          This version returns a Node instance if one has been found.
 
Methods inherited from class com.sri.emo.wizard.defaults.SequentialWizard
backupToPage, checkAgainstIllegalJump, convertKeyToPageId, equals, findWizardPageIndex, getAllData, getAllSteps, getCurrentPageIndex, getInitialPage, getPageById, getStepHistory, getTotalPages, hashCode, isNeedingRollback, next, previous, rollbackBacktrace, toString
 
Methods inherited from class com.sri.emo.wizard.AbstractWizard
begin, destroy, getBackTrace, getCurrentPage, getId, getMonitor, getSummary, getTitle, setCurrentPage, setId, setSummary, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmoSelectionWizard

public EmoSelectionWizard(WizardMonitor wizMonitor,
                          WizardPage[] steps)
Constructor that the Wizard Factory uses to instantiate the sequential wizard.

Parameters:
wizMonitor - WizardMonitor the Wizard Monitor to use for events.
steps - WizardPage[] the wizard pages to execute in sequence.
Method Detail

processFinish

public Object processFinish(WizardPage src,
                            Serializable data,
                            Map additionalParams)
                     throws WizardException
This version returns a Node instance if one has been found.

Processes the final finish and returns some sort of data that can be whatever is desired.

Specified by:
processFinish in interface Wizard
Overrides:
processFinish in class SequentialWizard
Parameters:
src - WizardPage the source of the event.
data - Serializable the data given during wht wizard post.
additionalParams - anything that the underlying wizard needs. The values are set by the Application Controller.
Returns:
An instance of a Node object that represents the node the Decision Matrix returned or null if there was no equivilant data found.
Throws:
WizardException - upon error.

onNextPage

protected boolean onNextPage(WizardPage previousPage,
                             WizardPage nextPage,
                             Serializable previousPageData)
                      throws WizardException
This particular implementation performs some pre-processing for some special pages.

Template method that gets called after the next page has been determined in the sequence.

Overrides:
onNextPage in class SequentialWizard
Parameters:
nextPage - WizardPage the next page that is about to be displayed.
previousPageData - Serializable the previously entered data from the last page where the user clicked 'next'.
previousPage - The previousPage that was displayted
Returns:
boolean true if you wish for the user to continue. False if the page data needs to be vetoed.
Throws:
WizardException - upon error.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.