|
||||||||||
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.branch.BranchingWizard com.sri.emo.wizard.creation.EmoCreationWizard
public class EmoCreationWizard
A completion wizard. 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 |
BROWSE_TRANSITION
|
static String |
CREATE_TRANSITION
|
static String |
DEFAULT_TRANSITION_KEY
|
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 |
SEARCH_TRANSITION
|
static String |
SUMMARY_TRANSITION
|
static String |
TITLE_PAGE_ID
Constant for the title page id. |
Constructor Summary | |
---|---|
EmoCreationWizard(WizardMonitor wizMonitor,
BranchNode[] steps)
Constructs an emo completion wizard. |
Method Summary | |
---|---|
SearchResultBean |
addSearchResult(Serializable pageId)
|
CreationBeans |
getCompletionBean()
|
SearchResultBean |
getCurrentSearchBean()
|
WizardPage |
getInitPage()
|
SearchListPage |
getSearchListPage(Serializable pageId)
|
SearchResultBean |
getSearchResult(Serializable pageId)
|
protected boolean |
includeInMainStep(BranchNode node)
|
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 |
setCompletionBeans(CreationBeans completionBeans)
Sets the underlying completion bean. |
Methods inherited from class com.sri.emo.wizard.branch.BranchingWizard |
---|
backupToPage, checkAgainstIllegalJump, convertKeyToPageId, equals, findWizardPageIndex, getAllData, getAllSteps, getCurrentPageIndex, getInitialPage, getMainStepHistory, getPageById, getStepHistory, hashCode, isNeedingRollback, next, 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
public static final String DEFAULT_TRANSITION_KEY
public static final String SEARCH_TRANSITION
public static final String BROWSE_TRANSITION
public static final String CREATE_TRANSITION
public static final String SUMMARY_TRANSITION
Constructor Detail |
---|
public EmoCreationWizard(WizardMonitor wizMonitor, BranchNode[] steps)
wizMonitor
- WizardMonitorsteps
- WizardPage[]Method Detail |
---|
public SearchResultBean getCurrentSearchBean()
public SearchResultBean addSearchResult(Serializable pageId)
public SearchListPage getSearchListPage(Serializable pageId)
public SearchResultBean getSearchResult(Serializable pageId)
protected boolean onNextPage(WizardPage previousPage, WizardPage nextPage, Serializable previousPageData) throws WizardException, AssertionError
onNextPage
in class BranchingWizard
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
protected boolean includeInMainStep(BranchNode node)
includeInMainStep
in class BranchingWizard
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 BranchingWizard
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 setCompletionBeans(CreationBeans completionBeans)
completionBean
- CompletionBeanpublic CreationBeans getCompletionBean()
public WizardPage getInitPage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |