public class RadioFormInput extends ToggleFormInput
Here is an example of a RadioFormInput tag:
<input type="radio" name="age" value="twentysomething"
checked="checked" /> Age 20-29
RadioFormInputGroup
,
Serialized FormConstructor and Description |
---|
RadioFormInput()
Constructs a default RadioFormInput object.
|
RadioFormInput(java.lang.String label,
boolean checked)
Constructs a RadioFormInput object with the specified viewable text label
and initial checked value.
|
RadioFormInput(java.lang.String name,
java.lang.String value,
java.lang.String label,
boolean checked)
Constructs a RadioFormInput object with the specified control name,
initial input value, viewable text label, and initial checked value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFOTag()
Returns a comment tag.
|
java.lang.String |
getTag()
Returns the tag for the radio button form input type.
|
getLabel, isChecked, setChecked, setLabel
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toString
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
public RadioFormInput()
public RadioFormInput(java.lang.String label, boolean checked)
label
- The viewable text label.checked
- If the radio button initializes to checked.public RadioFormInput(java.lang.String name, java.lang.String value, java.lang.String label, boolean checked)
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.