|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.Component | +--com.sas.servlet.beans.BaseTransformation | +--com.sas.servlet.beans.BaseChoicebox
Transformation bean definition for creating a Choicebox. A Choicebox is a drop-down combo that allows a single selection.
The Choicebox Transformation Bean gathers the selections from a model via the setModelInterface method. A model must implement the com.sas.collection.StaticOrderedCollection interface in order to be used.
Constructor Summary | |
BaseChoicebox()
|
Method Summary | |
StaticOrderedCollectionInterface |
getDescriptionModel()
Gets the model to be used for the decriptions of the choice entry. |
Vector |
getRequiredInterfaces()
Sets the required interface that a model must implement in order to attach to this bean Models must implement com.sas.collection.StaticOrderedCollectionInterface in order to be used by this transformation bean |
int |
getSelectedIndex()
Gets the index of single item to be marked as selected. |
String |
getSelectedItem()
Gets the value of a single item to be marked as selected. |
protected boolean |
isSelected(int index)
Determines if the given index should be marked as selected |
protected boolean |
isSelected(String value)
Determines if the given value should be marked as selected |
void |
setDescriptionModel(StaticOrderedCollectionInterface model)
Sets the model to be used for the decriptions of the choice entry. |
void |
setSelectedIndex(int value)
Sets the index of single item to be marked as selected. |
void |
setSelectedItem(String value)
Sets the value of a single item to be marked as selected. |
Methods inherited from class com.sas.servlet.beans.BaseTransformation |
getCustomAttributes,
getDescription,
getName,
getParent,
getRequest,
getResponse,
setCustomAttributes,
setDescription,
setName,
setParent,
setRequest,
setResponse,
toString,
write,
write,
write,
write |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BaseChoicebox()
Method Detail |
public Vector getRequiredInterfaces()
public void setSelectedIndex(int value) throws IOException
index
- The 0-based index of the item to be selected, or -1 for nonepublic int getSelectedIndex()
public void setSelectedItem(String value) throws IOException
value
- The value of the item to be selectedpublic String getSelectedItem()
protected boolean isSelected(int index)
index
- The index to checkprotected boolean isSelected(String value)
value
- The value to checkpublic void setDescriptionModel(StaticOrderedCollectionInterface model)
model
- The collection to use for the descriptionspublic StaticOrderedCollectionInterface getDescriptionModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |