|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.defaults.EmoWizardPage
public class EmoWizardPage
Wizard Page implementation for Emo. By default will store one string per page, although derived classes will often store maps, lists, and sets.
Constructor Summary | |
---|---|
EmoWizardPage(Integer newId,
PageMetadata pageMetadata,
ValidValue[] optionalMenu)
Constructor that takes a PageMetadata object and a page definition object to build itself. |
Method Summary | |
---|---|
void |
addError(String message)
Adds an error to be associated with the current page. |
boolean |
equals(Object parm1)
Override to performs field comparison. |
Serializable |
getData()
Retrieve the data associated with the page. |
Serializable |
getId()
Every page must have an id that is serializable. |
ValidValue[] |
getMenu()
Retrieve the picklist value for the map. |
PageMetadata |
getMetadata()
Retrieve the metadata associated with the page. |
ErrorCollection |
getPageErrors()
Retrieve an error collection (if any) that is associated with this page. |
String |
getPrintableData()
Retrieve the data in a printable fashion. |
int |
hashCode()
Override of hashcode. |
void |
removeErrors()
Clear all errors associated with the page. |
void |
setData(Serializable newData)
Sets the data associated with the page. |
String |
toString()
Override of toString(), returns the Id. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmoWizardPage(Integer newId, PageMetadata pageMetadata, ValidValue[] optionalMenu)
newId
- the page id.pageMetadata
- the metadata for the pageoptionalMenu
- The menu to pick from (may be null).Method Detail |
---|
public Serializable getId()
WizardPage
getId
in interface WizardPage
public Serializable getData()
WizardPage
getData
in interface WizardPage
public String getPrintableData()
WizardPage
getPrintableData
in interface WizardPage
public PageMetadata getMetadata()
WizardPage
getMetadata
in interface WizardPage
public void setData(Serializable newData) throws WizardException
WizardPage
setData
in interface WizardPage
newData
- the new data for the page.
WizardException
- upon error.public boolean equals(Object parm1)
equals
in class Object
parm1
- The other object to compare.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public ValidValue[] getMenu()
getMenu
in interface WizardPage
public ErrorCollection getPageErrors()
getPageErrors
in interface WizardPage
public void removeErrors()
removeErrors
in interface WizardPage
public void addError(String message)
addError
in interface WizardPage
message
- String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |