All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.RadioFormInput

java.lang.Object
   |
   +----com.ibm.as400.util.html.FormInput
           |
           +----com.ibm.as400.util.html.ToggleFormInput
                   |
                   +----com.ibm.as400.util.html.RadioFormInput

public class RadioFormInput
extends ToggleFormInput
The RadioFormInput class represents a radio button input type in an HTML form which represents a 1-of-many choice field. The trailing slash "/" on the RadioFormInput tag allows it to conform to the XHTML specification.

Here is an example of a RadioFormInput tag:
<input type="radio" name="age" value="twentysomething" checked="checked" /> Age 20-29

See Also:
RadioFormInputGroup

Constructor Index

 o RadioFormInput()
Constructs a default RadioFormInput object.
 o RadioFormInput(String, boolean)
Constructs a RadioFormInput object with the specified viewable text label and initial checked value.
 o RadioFormInput(String, String, String, boolean)
Constructs a RadioFormInput object with the specified control name, initial input value, viewable text label, and initial checked value.

Method Index

 o getTag()
Returns the tag for the radio button form input type.

Constructors

 o RadioFormInput
 public RadioFormInput()
Constructs a default RadioFormInput object.

 o RadioFormInput
 public RadioFormInput(String label,
                       boolean checked)
Constructs a RadioFormInput object with the specified viewable text label and initial checked value.

Parameters:
label - The viewable text label.
checked - If the radio button initializes to checked.
 o RadioFormInput
 public RadioFormInput(String name,
                       String value,
                       String label,
                       boolean checked)
Constructs a RadioFormInput object with the specified control name, initial input value, viewable text label, and initial checked value.

Parameters:
name - The control name of the input field.
value - The input value used when the field is submitted.
label - The viewable text label.
checked - If the radio button initializes to checked.

Methods

 o getTag
 public String getTag()
Returns the tag for the radio button form input type.

Returns:
The tag.
Overrides:
getTag in class FormInput

All Packages  Class Hierarchy  This Package  Previous  Next  Index