public abstract class ToggleFormInput extends FormInput
ToggleFormInput objects generate the following events:
| Constructor and Description | 
|---|
| ToggleFormInput()Constructs a default ToggleFormInput object. | 
| ToggleFormInput(java.lang.String label)Constructs a ToggleFormInput object with the specified viewable text label. | 
| ToggleFormInput(java.lang.String label,
               boolean checked)Constructs a ToggleFormInput object with the specified viewable text label
  and initial checked value. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getLabel()Returns the viewable text label for the toggle. | 
| boolean | isChecked()Indicates if the toggle is initialized to checked. | 
| void | setChecked(boolean checked)Sets whether the toggle is initialized to being checked. | 
| void | setLabel(java.lang.String label)Sets the viewable text label for the toggle. | 
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toStringaddPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFOTag, getTagpublic ToggleFormInput()
public ToggleFormInput(java.lang.String label)
label - The viewable text label.public ToggleFormInput(java.lang.String label,
               boolean checked)
label - The viewable text label.checked - If the toggle initializes to checked.public java.lang.String getLabel()
public boolean isChecked()
public void setChecked(boolean checked)
                throws java.beans.PropertyVetoException
checked - true if initialized to checked; false otherwise.  The default is false.java.beans.PropertyVetoException - If a change is vetoed.public void setLabel(java.lang.String label)
              throws java.beans.PropertyVetoException
label - The viewable text label.java.beans.PropertyVetoException - If a change is vetoed.