|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.AbstractWizard com.sri.emo.wizard.defaults.SequentialWizard com.sri.emo.wizard.creation.EmoCreationWizardOld
public class EmoCreationWizardOld
A creation wizard, as originally copied from Completion wizard with some modifications done to allow for the initialization page to be inserted For the completion wizard pages, ids are java.lang.Integer types with values <= 0 are special pages. Any values >0 represent a corresponding Part. Developers should use isPartsPage() for interpretation of this, however.
Field Summary | |
---|---|
static String |
FINAL_PAGE_ID
Constant for the last page (where 'finish' appears) id. |
static String |
INITIALIZATION_PAGE_ID
Constant for the initialization page id |
static String |
TITLE_PAGE_ID
Constant for the title page id. |
Constructor Summary | |
---|---|
EmoCreationWizardOld(WizardMonitor wizMonitor,
WizardPage[] steps)
Constructs an emo completion wizard. |
Method Summary | |
---|---|
CreationBean |
getCompletionBean()
|
protected boolean |
isDynamicTarget()
Returns true if the dynamic target has been specified. |
protected boolean |
isPartsPage(Integer pageId)
Checks if the given page Id indicates it is a 'Parts' page. |
protected boolean |
onNextPage(WizardPage previousPage,
WizardPage nextPage,
Serializable previousPageData)
Override of Sequential's onNextPage to allow for validation of values as they're entered. |
Object |
processFinish(WizardPage src,
Serializable data,
Map additonalParams)
This version returns a Node instance if one has been successfully created. |
void |
setCompletionBean(CreationBean completionBean)
Sets the underlying completion bean. |
Methods inherited from class com.sri.emo.wizard.defaults.SequentialWizard |
---|
backupToPage, checkAgainstIllegalJump, convertKeyToPageId, equals, findWizardPageIndex, getAllData, getAllSteps, getCurrentPageIndex, getInitialPage, getPageById, getStepHistory, getTotalPages, hashCode, isNeedingRollback, next, previous, rollbackBacktrace, toString |
Methods inherited from class com.sri.emo.wizard.AbstractWizard |
---|
begin, destroy, getBackTrace, getCurrentPage, getId, getMonitor, getSummary, getTitle, setCurrentPage, setId, setSummary, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TITLE_PAGE_ID
public static final String INITIALIZATION_PAGE_ID
public static final String FINAL_PAGE_ID
Constructor Detail |
---|
public EmoCreationWizardOld(WizardMonitor wizMonitor, WizardPage[] steps)
wizMonitor
- WizardMonitorsteps
- WizardPage[]Method Detail |
---|
protected boolean onNextPage(WizardPage previousPage, WizardPage nextPage, Serializable previousPageData) throws WizardException, AssertionError
onNextPage
in class SequentialWizard
previousPage
- WizardPagenextPage
- The next page that will be invoked. A 'lookahead' so
to speak.previousPageData
- Serializable
WizardException
- upon error.
AssertionError
- if the previouspage id is the final page.protected boolean isPartsPage(Integer pageId)
pageId
- Integer
public Object processFinish(WizardPage src, Serializable data, Map additonalParams) throws WizardException
Processes the final finish and returns some sort of data that can be whatever is desired.
processFinish
in interface Wizard
processFinish
in class SequentialWizard
src
- WizardPage the source of the event.data
- This class expects a string for the data.additonalParams
- anything that the underlying wizard needs. The
values are set by the Application Controller.
Node
object
that represents the node the Decision Matrix returned or null if
there was no equivilant data found.
WizardException
- upon error.protected boolean isDynamicTarget()
public void setCompletionBean(CreationBean completionBean)
completionBean
- CompletionBeanpublic CreationBean getCompletionBean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |