com.sri.emo.wizard.completion
Class CompletionMementoConverter
java.lang.Object
com.sri.emo.wizard.selection.EmoSelectionWizardFactory
com.sri.emo.wizard.completion.CompletionBuilder
com.sri.emo.wizard.completion.CompletionMementoConverter
- All Implemented Interfaces:
- WizardFactory, WizardFactorySPI, WizardMementoConverter
public class CompletionMementoConverter
- extends CompletionBuilder
- 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
Methods inherited from class com.sri.emo.wizard.selection.EmoSelectionWizardFactory |
addFinalStepToConstructedSteps, buildBackLink, buildCancelLink, buildFinishLink, buildNextLink, buildWizard, cloneTransition, commonTransitionConstruction, constructMonitor, constructWizard, getWizardController, getWizardId, getWizDefinition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionMementoConverter
public CompletionMementoConverter(CompletionRepository completionRepository)
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.