com.sas.servlet.beans
Interface RadioInterface

All Known Implementing Classes:
BaseRadio

public interface RadioInterface
extends TransformationInterface, ComponentInterface

Transformation bean definition for creating a Radio input field, which is used for attributes which can take a single value from a set of alternatives.


Method Summary
 StaticOrderedCollectionInterface getDescriptionModel()
          Gets the model to be used for the descriptions of the radio entry.
 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.
 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 interface com.sas.servlet.beans.TransformationInterface
getCustomAttributes, getDescription, getName, getParent, getRequest, getResponse, setCustomAttributes, setDescription, setName, setParent, setRequest, setResponse, write, write, write, write
 

Method Detail

setSelectedIndex

public void setSelectedIndex(int value)
                      throws IOException
Sets the index of a single item to be marked as selected. Setting the index will also update the corresponding selectedItem.
Parameters:
index - The 0-based index of the item to be selected, or -1 for none

setSelectedItem

public void setSelectedItem(String value)
                     throws IOException
Sets the value of a single item to be marked as selected. Setting the selectedItem will also update the corresponding selectedIndex.
Parameters:
value - The value of the item to be selected

getSelectedIndex

public int getSelectedIndex()
Gets the index value of a single item to be marked as selected
Returns:
The of 0-based index of the item to be selected, or -1 for none

getSelectedItem

public String getSelectedItem()
Gets the value of a single item to be marked as selected
Returns:
The value of the item to be selected, or null for none

setBreak

public void setBreak(boolean value)
Forces a break after each input field. Default is true
Parameters:
break - Set to true to force a line break after each input field

isBreak

public boolean isBreak()
Gets the flag indicating whether to force a break after each input field.
Returns:
True to force a line break after each input field

setDescriptionModel

public void setDescriptionModel(StaticOrderedCollectionInterface model)
Sets the model to be used for the descriptions of the radio entry. The default is to use the model specified in setModelInterface, which will cause the value of the radio to be the same as the text.
Parameters:
model - The collection to use for the descriptions

getDescriptionModel

public StaticOrderedCollectionInterface getDescriptionModel()
Gets the model to be used for the descriptions of the radio entry. The default is to use the model specified in setModelInterface.
Returns:
The collection to use for the descriptions


Version: 1.2.20000317.001 Formatted: 2000/07/06 15:57:33PM