|
||||||||||
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.BaseRadio
Transformation bean base object for creating a Radio input field, which is used for attributes which can take a single value from a set of alternatives.
The Radio Transformation Bean gathers the alternatives from a model via the setModelInterface method. A model must implement the com.sas.collection.StaticOrderedCollection interface in order to be used.
Constructor Summary | |
BaseRadio()
|
Method Summary | |
StaticOrderedCollectionInterface |
getDescriptionModel()
Gets the model to be used for the descriptions of the radio entry. |
Vector |
getRequiredInterfaces()
Gets 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 value of a single item to be marked as selected |
String |
getSelectedItem()
Gets the value of a single item to be marked as selected |
boolean |
isBreak()
Gets the flag indicating whether to force a break after each input field. |
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 |
setBreak(boolean value)
Forces a break after each input field. |
void |
setDescriptionModel(StaticOrderedCollectionInterface model)
Sets the model to be used for the descriptions of the radio entry. |
void |
setSelectedIndex(int value)
Sets the index of a 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 BaseRadio()
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 void setSelectedItem(String value) throws IOException
value
- The value of the item to be selectedpublic int getSelectedIndex()
public String getSelectedItem()
protected boolean isSelected(int index)
index
- The index to checkprotected boolean isSelected(String value)
index
- The value to checkpublic void setBreak(boolean value)
break
- Set to true to force a line break after each input fieldpublic boolean isBreak()
public 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 |