All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.util.html.ToggleFormInput

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

public abstract class ToggleFormInput
extends FormInput
The ToggleFormInput class represents a toggle input type in an HTML form.

ToggleFormInput objects generate the following events:


Constructor Index

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

Method Index

 o getLabel()
Returns the viewable text label for the toggle.
 o isChecked()
Indicates if the toggle is initialized to checked.
 o setChecked(boolean)
Sets whether the toggle is initialized to being checked.
 o setLabel(String)
Sets the viewable text label for the toggle.

Constructors

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

 o ToggleFormInput
 public ToggleFormInput(String label)
Constructs a ToggleFormInput object with the specified viewable text label.

Parameters:
label - The viewable text label.
 o ToggleFormInput
 public ToggleFormInput(String label,
                        boolean checked)
Constructs a ToggleFormInput object with the specified viewable text label and initial checked value.

Parameters:
label - The viewable text label.
checked - If the toggle initializes to checked.

Methods

 o getLabel
 public String getLabel()
Returns the viewable text label for the toggle.

Returns:
The viewable text label.
 o isChecked
 public boolean isChecked()
Indicates if the toggle is initialized to checked.

Returns:
true if checked; false otherwise.
 o setChecked
 public void setChecked(boolean checked) throws PropertyVetoException
Sets whether the toggle is initialized to being checked.

Parameters:
checked - true if initialized to checked; false otherwise. The default is false.
Throws: PropertyVetoException
If a change is vetoed.
 o setLabel
 public void setLabel(String label) throws PropertyVetoException
Sets the viewable text label for the toggle.

Parameters:
label - The viewable text label.
Throws: PropertyVetoException
If a change is vetoed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index