|
||||||||||
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 com.sri.emo.wizard.creation.CreationPartsPage com.sri.emo.wizard.creation.RelationWizardPage
public class RelationWizardPage
Wizard page that handles the selection of various relations available.
Field Summary | |
---|---|
static String |
PARAM_PREFIX
The prefix of all ids that this class culls from the parameters. |
Constructor Summary | |
---|---|
RelationWizardPage(Integer newId,
PageMetadata pageMetadata)
Standard constructor for a wizard page. |
Method Summary | |
---|---|
int |
getNumAvailableRelations()
|
ValidValueWithComment[] |
getRelatedNodesMenu()
Retrieve the menu. |
protected CreationPageMetadata |
getRelationPageMetadata()
Type safe page getter. |
Map |
getSelectedRelations()
|
void |
setData(Serializable newData)
Intercepts the setData call (which is a Map), grabs the parameters we're interested in, and calls the super.setData() with a Set of all relations that are listed as 'checked'. |
void |
setNumAvailableRelations(int numAvailableRelations)
|
Methods inherited from class com.sri.emo.wizard.defaults.EmoWizardPage |
---|
addError, equals, getData, getId, getMenu, getMetadata, getPageErrors, getPrintableData, hashCode, removeErrors, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_PREFIX
Constructor Detail |
---|
public RelationWizardPage(Integer newId, PageMetadata pageMetadata)
newId
- IntegerpageMetadata
- PageMetadataMethod Detail |
---|
public void setData(Serializable newData) throws WizardException
setData
in interface WizardPage
setData
in class EmoWizardPage
newData
- the new data for the page. (Should be a map)
WizardException
- upon error.public Map getSelectedRelations() throws WizardException
WizardException
public ValidValueWithComment[] getRelatedNodesMenu() throws DBException
DBException
protected CreationPageMetadata getRelationPageMetadata()
public void setNumAvailableRelations(int numAvailableRelations)
public int getNumAvailableRelations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |