|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.selection.EmoSelectionWizardFactory
public class EmoSelectionWizardFactory
Wizard Factory for EMO wizards. It also happens to implement WizardMementoConverter because it is most intimate with the inner workings of the wizards, therefore it is best able to do the dehydration and rehydration grunt work. That said, the client shouldn't know that!
Field Summary | |
---|---|
Class |
DEFAULT_CONTROLLER
Constant for the default controller used for Emo. |
Constructor Summary | |
---|---|
EmoSelectionWizardFactory()
Constructor that takes a data context. |
Method Summary | |
---|---|
protected void |
addFinalStepToConstructedSteps(WizDefinition definition,
List predefinedSteps)
|
protected ExpressoLink |
buildBackLink(int id)
Builds the link that corresponds to the 'back' location. |
protected ExpressoLink |
buildCancelLink(int id)
Builds the link that corresponds to the 'cancel' location. |
protected ExpressoLink |
buildFinishLink(int id)
Builds the link that corresponds to the 'finish' location. |
protected ExpressoLink |
buildNextLink(int id)
Builds the link that corresponds to the 'next' location. |
Wizard |
buildWizard()
Constructs a new wizard instance and returns it. |
protected ExpressoLink |
cloneTransition(ExpressoLink next,
String pageId)
|
protected Transition |
commonTransitionConstruction(int id)
|
protected WizardMonitor |
constructMonitor()
Override to provide your own monitor, possibly for testing purposes. |
protected Wizard |
constructWizard(WizDefinition definition,
List steps)
Constructs the wizard itself. |
Wizard |
fromMemento(Serializable previouslyExternalized)
|
protected Class |
getWizardController()
Retrieve the controller for the wizard. |
protected int |
getWizardId()
getWizardId |
protected WizDefinition |
getWizDefinition()
Retrieve the WizDefinition associated with the defined id in the constructor. |
void |
setWizardId(int newId)
Sets the wizard id for the given selection factory. |
Serializable |
toMemento(Wizard target)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Class DEFAULT_CONTROLLER
Constructor Detail |
---|
public EmoSelectionWizardFactory()
Method Detail |
---|
public void setWizardId(int newId)
setWizardId
in interface WizardFactorySPI
newId
- intprotected Transition commonTransitionConstruction(int id)
protected ExpressoLink buildNextLink(int id)
id
- int the wizard id
protected ExpressoLink buildFinishLink(int id)
id
- int the wizard id
protected ExpressoLink buildCancelLink(int id)
id
- int the wizard id
protected ExpressoLink buildBackLink(int id)
id
- int the wizard id
public Wizard buildWizard() throws WizardException
WizardFactory
buildWizard
in interface WizardFactory
WizardException
- upon error building it.protected WizDefinition getWizDefinition() throws DBException
DBException
- if the wizdefinition cannot be retrieved.protected ExpressoLink cloneTransition(ExpressoLink next, String pageId)
protected void addFinalStepToConstructedSteps(WizDefinition definition, List predefinedSteps) throws DBException
DBException
protected Wizard constructWizard(WizDefinition definition, List steps) throws DBException
definition
- the WizDefinition dbobject for this wizard.steps
- the List of steps that were constructed previously in
the constructSteps function.
DBException
- upon database exception error.protected WizardMonitor constructMonitor()
protected Class getWizardController()
protected int getWizardId()
public Serializable toMemento(Wizard target) throws WizardException
WizardException
public Wizard fromMemento(Serializable previouslyExternalized) throws WizardException
WizardException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |