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:
- PropertyChangeEvent
- VetoableChangeEvent
-
ToggleFormInput()
- Constructs a default ToggleFormInput object.
-
ToggleFormInput(String)
- Constructs a ToggleFormInput object with the specified viewable text label.
-
ToggleFormInput(String, boolean)
- Constructs a ToggleFormInput object with the specified viewable text label
and initial checked value.
-
getLabel()
- Returns the viewable text label for the toggle.
-
isChecked()
- Indicates if the toggle is initialized to checked.
-
setChecked(boolean)
- Sets whether the toggle is initialized to being checked.
-
setLabel(String)
- Sets the viewable text label for the toggle.
ToggleFormInput
public ToggleFormInput()
- Constructs a default ToggleFormInput object.
ToggleFormInput
public ToggleFormInput(String label)
- Constructs a ToggleFormInput object with the specified viewable text label.
- Parameters:
- label - The viewable text label.
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.
getLabel
public String getLabel()
- Returns the viewable text label for the toggle.
- Returns:
- The viewable text label.
isChecked
public boolean isChecked()
- Indicates if the toggle is initialized to checked.
- Returns:
- true if checked; false otherwise.
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.
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