com.sri.emo.wizard.completion
Class CompletionMementoConverter

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.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

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
CompletionMementoConverter(CompletionRepository 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.completion.CompletionBuilder
getDefinition, setWizardId
 
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
 

Constructor Detail

CompletionMementoConverter

public CompletionMementoConverter(CompletionRepository 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.