|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ibm.as400.util.html.HTMLTagAttributes
|
+--com.ibm.as400.util.html.FormInput
|
+--com.ibm.as400.util.html.ToggleFormInput
|
+--com.ibm.as400.util.html.CheckboxFormInput
The CheckboxFormInput class represents a checkbox input type in an HTML form where the checkbox represents an n-of-many choice field. The trailing slash "/" on the CheckboxFormInput tag allows it to conform to the XHTML specification.
Here is an example of a CheckboxFormInput tag:
<input type="checkbox" name="uscitizen" value="yes"
checked="checked" /> textLabel
| Constructor Summary | |
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. |
|
| Method Summary | |
java.lang.String |
getFOTag()
Returns a comment tag. |
java.lang.String |
getTag()
Returns the tag for the checkbox 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 |
public 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.| Method Detail |
public java.lang.String getFOTag()
public java.lang.String getTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||