All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.abc.templates.HtmlRadio

java.lang.Object
   |
   +----com.abc.templates.HtmlControl
           |
           +----com.abc.templates.HtmlRadio

public class HtmlRadio
extends HtmlControl
implements Serializable

Represents group of radio buttons. Set of radio buttons withthe same name is a group. Browser will alow you to chose only one fromthe group.

All properties:

<input type="radio" name="Radio" value="10" checked visible="0" .....(additional property)> 

Control has exactly the same signature as pure html( except visible property). All additional properties will be combined in one string.

Example: <input type="checkbox" name="Check" value="10" onMouseOver="mouseover()"> OnMouseOver is additonal property.


 o addAdditionalOptions(int iNum, String)

Adds addtional property to control number iNum( starts from 0 ) in the set.
 
 o getValue()
returns Value of selected radio button.
 o setChecked(int iNum)
sets iNum( starts from 0 ) control in the set in selected state.
 o setValue(int iNum, String)
sets value of the control number iNum in the set
 o setValue(String)
sets control with that value into selected state.

 o addAdditionalOptions

 public final void addAdditionalOptions(int index,
                                        String sOptions)
  

 o getValue

 public final String getValue()
Overrides:
getValue in class HtmlControl
 

 o setChecked

 public final void setChecked(int i)
 

 o setValue

 public final void setValue(int index,
                            String sValue)

 o setValue

 public final void setValue(String sValue)
Overrides:
setValue in class HtmlControl
 

All Packages  Class Hierarchy  This Package  Previous  Next  Index