All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.CheckboxFormInput

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

public class CheckboxFormInput
extends ToggleFormInput
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 Index

 o CheckboxFormInput()
Constructs a default CheckboxFormInput object.
 o CheckboxFormInput(String, boolean)
Constructs a CheckboxFormInput object with the specified viewable text label and initial checked value.
 o CheckboxFormInput(String, String, String, boolean)
Constructs a CheckboxFormInput 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 checkbox form input type.

Constructors

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

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

Parameters:
label - The viewable text label.
checked - If the checkbox initializes to checked.
 o CheckboxFormInput
 public CheckboxFormInput(String name,
                          String value,
                          String label,
                          boolean checked)
Constructs a CheckboxFormInput 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 checkbox initializes to checked.

Methods

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

Returns:
The tag.
Overrides:
getTag in class FormInput

All Packages  Class Hierarchy  This Package  Previous  Next  Index