|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.AbstractWizard
public abstract class AbstractWizard
Base class for wizard implementations. Use one of the constructors for customization of behavior.
Constructor Summary | |
---|---|
AbstractWizard(WizardMonitor wizMonitor)
Constructor for brand new wizard. |
Method Summary | |
---|---|
WizardPage |
begin()
Retrieve the first wizard page and initialize any special data for the Wizard. |
void |
destroy()
De-initialize all data for the wizard. |
boolean |
equals(Object parm1)
Checks for equality field by field. |
protected Stack |
getBackTrace()
Retrieve the backtrace stack |
WizardPage |
getCurrentPage()
Retrieves a pointer to the current page in the wizard. |
Object |
getId()
Retrieve the id of the Wizard. |
protected abstract WizardPage |
getInitialPage()
Retrieve the initial page defined for the wizard in the sequence. |
protected WizardMonitor |
getMonitor()
Retreieve the monitor associated with this wizard. |
String |
getSummary()
Retrieve the text summary of the wizard. |
String |
getTitle()
Retrieve the title of the wizard. |
int |
hashCode()
Returns hashcode of the title. |
abstract WizardPage |
next(WizardPage src,
Serializable newData)
Execute the next page in the wizard. |
WizardPage |
previous()
Backtracks the stack. |
Object |
processFinish(WizardPage src,
Serializable data,
Map additonalParams)
Processes the final finish and returns some sort of data that can be whatever is desired. |
protected void |
setCurrentPage(WizardPage current)
Set the current page for the wizard. |
void |
setId(Object id)
Sets the wizard Id. |
void |
setSummary(String wizardSummary)
Set the summary text of the wizard. |
void |
setTitle(String wizardTitle)
Set the title of the wizard. |
String |
toString()
Override of toString(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sri.emo.wizard.Wizard |
---|
backupToPage, getAllData, getPageById, getStepHistory |
Constructor Detail |
---|
public AbstractWizard(WizardMonitor wizMonitor)
wizMonitor
- the wizard monitor.Method Detail |
---|
protected WizardMonitor getMonitor()
protected Stack getBackTrace()
public WizardPage begin() throws WizardException
Wizard
begin
in interface Wizard
WizardException
- upon error.protected abstract WizardPage getInitialPage()
public abstract WizardPage next(WizardPage src, Serializable newData) throws WizardException
Wizard
next
in interface Wizard
src
- the source page of the next event.newData
- the data to post to the Wizard.
WizardException
- upon error.public WizardPage getCurrentPage()
Wizard
getCurrentPage
in interface Wizard
protected void setCurrentPage(WizardPage current)
current
- the current page.public WizardPage previous() throws WizardException
Retrieve the first wizard page and initialize any special data for the Wizard.
previous
in interface Wizard
WizardException
- upon error, including if we are already
at the first state.public void destroy() throws WizardException
Wizard
destroy
in interface Wizard
WizardException
- upon destruction error.public Object processFinish(WizardPage src, Serializable data, Map additonalParams) throws WizardException
Override in subclasses to return somethingfun useful. Call the superclass implementation to set the final version and trigger the monitor execution. This particular version returns getAllData(), but of course, in your derived class you can return anything you want.
processFinish
in interface Wizard
src
- WizardPagedata
- SerializableadditonalParams
- Map: whatever the desired wizard needs
from the controller. Values and objects will vary and is defined
by the Application Layer that calls this method.
WizardException
public String getTitle()
Wizard
getTitle
in interface Wizard
public void setTitle(String wizardTitle)
wizardTitle
- the new wizard title.public String getSummary()
Wizard
getSummary
in interface Wizard
public void setSummary(String wizardSummary)
wizardSummary
- String, the new summary value.public String toString()
toString
in class Object
public Object getId()
getId
in interface Wizard
public void setId(Object id)
id
- Object the object that represents the wizard id.public int hashCode()
hashCode
in class Object
public boolean equals(Object parm1)
equals
in class Object
parm1
- the other object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |