|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.html.FormInput | +--com.ibm.as400.util.html.ToggleFormInput
The ToggleFormInput class represents a toggle input type in an HTML form.
ToggleFormInput objects generate the following events:
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class com.ibm.as400.util.html.FormInput |
addPropertyChangeListener,
addVetoableChangeListener,
getDirection,
getLanguage,
getName,
getSize,
getValue,
removePropertyChangeListener,
removeVetoableChangeListener,
setDirection,
setLanguage,
setName,
setSize,
setValue,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public 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.Method Detail |
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.public void setLabel(java.lang.String label) throws java.beans.PropertyVetoException
label
- The viewable text label.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |