com.sri.emo.wizard.completion
Class EmoCompletionFactory

java.lang.Object
  extended by com.sri.emo.wizard.selection.EmoSelectionWizardFactory
      extended by com.sri.emo.wizard.completion.CompletionBuilder
          extended by com.sri.emo.wizard.completion.EmoCompletionFactory
All Implemented Interfaces:
WizardFactory, WizardFactorySPI

public class EmoCompletionFactory
extends CompletionBuilder

Constructs Completion Wizards.

Version:
1.0
Author:
Michael Rimov

Field Summary
 
Fields inherited from class com.sri.emo.wizard.completion.CompletionBuilder
back, cancel, finish, next, repository
 
Fields inherited from class com.sri.emo.wizard.selection.EmoSelectionWizardFactory
DEFAULT_CONTROLLER
 
Constructor Summary
EmoCompletionFactory(CompletionRepository completionRepository)
          Constructs a given wizard.
 
Method Summary
 Wizard buildWizard()
          Constructs a new wizard instance and returns it.
protected  Transition commonTransitionConstruction(int id)
          Override of base class to change controller
protected  Wizard constructWizard(WizDefinition definition, List steps)
          Constructs the wizard itself.
 
Methods inherited from class com.sri.emo.wizard.completion.CompletionBuilder
getDefinition, setWizardId
 
Methods inherited from class com.sri.emo.wizard.selection.EmoSelectionWizardFactory
addFinalStepToConstructedSteps, buildBackLink, buildCancelLink, buildFinishLink, buildNextLink, cloneTransition, constructMonitor, fromMemento, getWizardController, getWizardId, getWizDefinition, toMemento
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmoCompletionFactory

public EmoCompletionFactory(CompletionRepository completionRepository)
Constructs a given wizard.

Parameters:
completionRepository - the CompletionRepository to draw the various wizards from.
Method Detail

commonTransitionConstruction

protected Transition commonTransitionConstruction(int id)
Override of base class to change controller

Overrides:
commonTransitionConstruction in class EmoSelectionWizardFactory
Parameters:
id - int
Returns:
Transition

constructWizard

protected Wizard constructWizard(WizDefinition definition,
                                 List steps)
                          throws DBException
Constructs the wizard itself.

Overrides:
constructWizard in class EmoSelectionWizardFactory
Parameters:
definition - the WizDefinition dbobject for this wizard.
steps - the List of steps that were constructed previously in the constructSteps function.
Returns:
fully constructed Wizard instance.
Throws:
DBException - upon database exception error.

buildWizard

public Wizard buildWizard()
                   throws WizardException
Constructs a new wizard instance and returns it.

Specified by:
buildWizard in interface WizardFactory
Overrides:
buildWizard in class EmoSelectionWizardFactory
Returns:
Wizard instance
Throws:
WizardException - upon error building it.


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