|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.PresentationObject
com.ge.research.acuity.ui.IndependentDisplayPO
com.ge.research.acuity.ui.InteractionObject
com.ge.research.acuity.ui.SelectionPO
An interaction object that allows for selection from a list of choices.
| Field Summary |
| Fields inherited from class com.ge.research.acuity.ui.InteractionObject |
CLIENT_EFFECT_LANGUAGE, CLIENT_EFFECT_LOCATION, CLIENT_EFFECT_TYPE |
| Constructor Summary | |
SelectionPO()
Calls the default constructor with null argument |
|
SelectionPO(java.lang.String statement)
The default constructor. |
|
| Method Summary | |
void |
addChoice(java.lang.Object value,
java.lang.Object display)
Adds a choice to the list of choices for this selection. |
boolean |
allowsMultipleSelection()
Returns the value of the flag indicating whether or not multiple choices are allowed to be selected. |
boolean |
canAddSelectionToChoices()
Returns the value of the flag indicating whether or not a selection value that does not appear in the set of choices can be added to the set of choices and displayed as a valid selection |
java.lang.Object |
getChoiceValue(int i)
Returns the choice value at index i within the list of choices. |
java.util.List |
getChoiceValues()
Returns the list of choice value for this selection. |
java.lang.Object[] |
getDefaultValues()
Returns the array of SELECTED choice values (default values) for this selection. |
java.lang.Object |
getDisplayChoice(int i)
Returns the display value to use for the choice value at index i within the list of choices. |
java.util.List |
getDisplayChoices()
Returns the list of display strings to use for the choice values for this selection. |
java.lang.String |
getHasSortType()
Returns the sort type of this selection list object. |
int |
getNumChoices()
Returns the number of choices that exist for this selection. |
int |
getNumVisible()
Returns the number of choices the client application should make visible at a time. |
void |
removeChoices()
Removes all choices from this selction. |
void |
removeDefaultValues()
Removes all pre-selected choices (default values) for this selection. |
void |
setAllowsMultipleSelection(boolean b)
Sets the value of the flag indicating whether or not multiple choices are allowed to be selected. |
void |
setCanAddSelectionToChoices(boolean b)
Sets the value of the flag indicating whether or not a selection value that does not appear in the set of choices can be added to the set of choices and displayed as a valid selection |
void |
setDefaultValues(java.lang.Object[] vals)
Sets the array of SELECTED choice values (default values) for this selection. |
void |
setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature in InteractionObject. |
void |
setHasSortType(java.lang.String type)
Checks that the new value for sort type is a valid presentation parameter sort type. |
void |
setNumVisible(int i)
Sets the number of choices the client application should make visible at a time. |
| Methods inherited from class com.ge.research.acuity.ui.InteractionObject |
alwaysRefresh, getClientEffects, getOrientation, getPrompt, getValueName, hasOwnSubmit, isDisabled, setAlwaysRefresh, setClientEffects, setHasOwnSubmit, setIsDisabled, setOrientation, setPrompt, setSubmitsOnChange, setValueName, submitsOnChange |
| Methods inherited from class com.ge.research.acuity.ui.IndependentDisplayPO |
canBeRemoved, displayBanner, getHeight, getIdentifierTitle, getWidth, getXPos, getYPos, getZOrder, setCanBeRemoved, setDisplayBanner, setHeight, setIdentifier, setIdentifierTitle, setPos, setPos, setPos, setPos, setWidth, setXPos, setYPos, setZOrder |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIsDisplayed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelectionPO()
null argument
public SelectionPO(java.lang.String statement)
PresentationNatureConstants.DROPDOWN
Sets the sort type to PresentationParameterConstants.SIAO_SORT_LABEL_ASC
statement - the statement explaining the purpose of this interaction object and contentInteractionObject.InteractionObject(java.lang.String),
setHasPresentationNature(java.lang.String),
setHasSortType(java.lang.String)| Method Detail |
public void addChoice(java.lang.Object value,
java.lang.Object display)
value - the choice value for the selectiondisplay - the display value to be presented for the choice valuepublic final boolean allowsMultipleSelection()
true if the selection allows multiple choices to be selected;
false if the selection allows at most a single choice to be selected.public final boolean canAddSelectionToChoices()
true if the selection allows a selected value not present in the choice list to be added;
false if the selection does not allows a selected value that does not appear in the choice list.
public java.lang.Object getChoiceValue(int i)
throws java.lang.IndexOutOfBoundsException
i within the list of choices.
i element within the list of choices
java.lang.IndexOutOfBoundsException - if i is negative or greater than or equal to the number of choices for this selectionpublic java.util.List getChoiceValues()
public java.lang.Object[] getDefaultValues()
public java.lang.Object getDisplayChoice(int i)
throws java.lang.IndexOutOfBoundsException
i within the list of choices.
i element within the list of choice's display strings
java.lang.IndexOutOfBoundsException - if i is negative or greater than or equal to the number of display choices for this selectionpublic java.util.List getDisplayChoices()
public final java.lang.String getHasSortType()
public int getNumChoices()
public int getNumVisible()
getNumChoices()public void removeChoices()
removeDefaultValues()public void removeDefaultValues()
setDefaultValues(java.lang.Object[])public final void setAllowsMultipleSelection(boolean b)
b - true if the selection should allow multiple choices to be selected;
false if the selection should allow at most a single choice to be selected.public final void setCanAddSelectionToChoices(boolean b)
b - true if the selection should allow a selected value not present in the choice list to be added;
false if the selection should not allow a selected value that does not appear in the choice list.public void setDefaultValues(java.lang.Object[] vals)
vals - the array of pre-selected choice values for the selection, that should be rendered as suchpublic final void setHasSortType(java.lang.String type)
type - the new value of sort typePresentationParameterConstants.isSortType(java.lang.String)public void setHasPresentationNature(java.lang.String string)
setHasPresentationNature in class InteractionObjectstring - the new value of presentation naturePresentationNatureConstants.isSelectionType(java.lang.String)public void setNumVisible(int i)
i - The number of choices to be made visible, at one time, within the client application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||