com.sri.emo.wizard.creation
Class CreationMementoConverter

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.CreationMementoConverter
All Implemented Interfaces:
WizardFactory, WizardFactorySPI, WizardMementoConverter

public class CreationMementoConverter
extends CreationBuilder
implements WizardMementoConverter

Writes a CompletionWizard to and from a compact form. (A memento). This memento is then saved in state. See the WizardMementoConverter interface for more information.

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
CreationMementoConverter(CreationRepository completionRepository)
           
 
Method Summary
 Wizard fromMemento(Serializable previouslyExternalized)
          Re-fleshes out the wizard into usable forms.
 Serializable toMemento(Wizard target)
          Breaks the wizard down into minimal component state parts that can be stored in the session or client.
 
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, buildWizard, cloneTransition, commonTransitionConstruction, constructMonitor, getWizardController, getWizardId, getWizDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreationMementoConverter

public CreationMementoConverter(CreationRepository completionRepository)
Method Detail

fromMemento

public Wizard fromMemento(Serializable previouslyExternalized)
                   throws WizardException
Re-fleshes out the wizard into usable forms.

Specified by:
fromMemento in interface WizardMementoConverter
Overrides:
fromMemento in class EmoSelectionWizardFactory
Parameters:
previouslyExternalized - Serializable
Returns:
Wizard
Throws:
WizardException

toMemento

public Serializable toMemento(Wizard target)
                       throws WizardException
Breaks the wizard down into minimal component state parts that can be stored in the session or client.

Specified by:
toMemento in interface WizardMementoConverter
Overrides:
toMemento in class EmoSelectionWizardFactory
Parameters:
target - Wizard the wizard being 'dehydrated'
Returns:
Serializable -- an opaque object that should be serialized, stashed or something, but nothing else.
Throws:
WizardException


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