com.sri.emo.wizard.creation
Class EmoCreationWizardFactory

java.lang.Object
  extended by com.sri.emo.wizard.selection.EmoSelectionWizardFactory
      extended by com.sri.emo.wizard.branch.EmoBranchingWizardFactory
          extended by com.sri.emo.wizard.creation.CreationBuilder
              extended by com.sri.emo.wizard.creation.EmoCreationWizardFactory
All Implemented Interfaces:
WizardFactory, WizardFactorySPI

public class EmoCreationWizardFactory
extends CreationBuilder

Constructs Completion Wizards.

Version:
1.0
Author:
Michael Rimov

Field Summary
 
Fields inherited from class com.sri.emo.wizard.creation.CreationBuilder
back, cancel, finish, next, repository
 
Fields inherited from class com.sri.emo.wizard.selection.EmoSelectionWizardFactory
DEFAULT_CONTROLLER
 
Constructor Summary
EmoCreationWizardFactory(CreationRepository 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, BranchList steps)
          Constructs the wizard itself.
 
Methods inherited from class com.sri.emo.wizard.creation.CreationBuilder
getDefinition, setWizardId
 
Methods inherited from class com.sri.emo.wizard.branch.EmoBranchingWizardFactory
constructWizard
 
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

EmoCreationWizardFactory

public EmoCreationWizardFactory(CreationRepository 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,
                                 BranchList steps)
                          throws DBException
Constructs the wizard itself.

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.