com.ibm.as400.util.html
Class RadioFormInput

java.lang.Object
  extended by com.ibm.as400.util.html.HTMLTagAttributes
      extended by com.ibm.as400.util.html.FormInput
          extended by com.ibm.as400.util.html.ToggleFormInput
              extended by com.ibm.as400.util.html.RadioFormInput
All Implemented Interfaces:
HTMLTagElement, Serializable

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, Serialized Form

Constructor Summary
Constructor and Description
RadioFormInput()
          Constructs a default RadioFormInput object.
RadioFormInput(String label, boolean checked)
          Constructs a RadioFormInput object with the specified viewable text label and initial checked value.
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.
 
Method Summary
Modifier and Type Method and Description
 String getFOTag()
          Returns a comment tag.
 String getTag()
          Returns the tag for the radio button form input type.
 
Methods inherited from class com.ibm.as400.util.html.ToggleFormInput
getLabel, isChecked, setChecked, setLabel
 
Methods inherited from class com.ibm.as400.util.html.FormInput
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toString
 
Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadioFormInput

public RadioFormInput()
Constructs a default RadioFormInput object.


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.

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.
Method Detail

getFOTag

public String getFOTag()
Returns a comment tag. This method should not be called. There is no XSL-FO support for this class.

Returns:
The comment tag.

getTag

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

Returns:
The tag.