public class CheckboxFormInput extends ToggleFormInput
Here is an example of a CheckboxFormInput tag:
<input type="checkbox" name="uscitizen" value="yes"
checked="checked" /> textLabel
| Constructor and Description |
|---|
CheckboxFormInput()
Constructs a default CheckboxFormInput object.
|
CheckboxFormInput(java.lang.String label,
boolean checked)
Constructs a CheckboxFormInput object with the specified viewable text label
and initial checked value.
|
CheckboxFormInput(java.lang.String name,
java.lang.String value,
java.lang.String label,
boolean checked)
Constructs a CheckboxFormInput 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 checkbox form input type.
|
getLabel, isChecked, setChecked, setLabeladdVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toStringaddPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributespublic CheckboxFormInput()
public CheckboxFormInput(java.lang.String label,
boolean checked)
label - The viewable text label.checked - If the checkbox initializes to checked.public CheckboxFormInput(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 checkbox initializes to checked.