|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Wizard
The interface for generic wizards. Often the actual operation of the wizard will be performed by another controller. The wizard provides more of a domain model for traversing a series of steps.
Method Summary | |
---|---|
WizardPage |
backupToPage(Serializable pageId)
Allows programmatic rewinding to a previous page. |
WizardPage |
begin()
Retrieve the first wizard page and initialize any special data for the Wizard. |
void |
destroy()
De-initialize all data for the wizard. |
Map |
getAllData()
Retrieve all the data for the wizard keyed by page id. |
WizardPage |
getCurrentPage()
Retrieves a pointer to the current page in the wizard. |
Object |
getId()
Retrieve the id of the Wizard. |
WizardPage |
getPageById(Serializable s)
Retrieve a page by a given id. |
List |
getStepHistory()
Retrieve all Pages in the order that the person has stepped through them. |
String |
getSummary()
Retrieve the text summary of the wizard. |
String |
getTitle()
Retrieve the title of the wizard. |
WizardPage |
next(WizardPage src,
Serializable newData)
Execute the next page in the wizard. |
WizardPage |
previous()
Retrieve the first wizard page and initialize any special data for the Wizard. |
Object |
processFinish(WizardPage src,
Serializable data,
Map additonalParams)
Processes the final finish and returns some sort of data that can be whatever is desired. |
Method Detail |
---|
WizardPage begin() throws WizardException
WizardException
- upon error.WizardPage getCurrentPage()
IllegalStateException
- if this is called before begin() is
ever invoked.WizardPage getPageById(Serializable s)
s
- Serializable the page key.
IllegalArgumentException
- if s is null or the page given doesn't
exist.WizardPage backupToPage(Serializable pageId)
pageId
- Serializable the page key.
WizardPage next(WizardPage src, Serializable newData) throws WizardException
newData
- the data to post to the Wizard.src
- the source page of the next event.
WizardException
- upon error.WizardPage previous() throws WizardException
WizardException
- upon error.Object processFinish(WizardPage src, Serializable data, Map additonalParams) throws WizardException
src
- WizardPage the source of the event.data
- Serializable the data given during wht wizard post.additonalParams
- anything that the underlying wizard needs.
The values are set by the Application Controller.
WizardException
- upon error.void destroy() throws WizardException
WizardException
- upon destruction error.Map getAllData() throws WizardException
WizardException
- upon errorList getStepHistory() throws WizardException
WizardException
- if unable to query history.String getTitle()
String getSummary()
Object getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |