Checkbox Members

Checkbox Members

Class Overview | This Package | All Packages

Constructors
Name Description
Checkbox() Creates a check box with no label.
Checkbox(String) Creates a check box with the specified label.
Checkbox(String, boolean) Creates a check box with the specified label.
Checkbox(String, boolean, CheckboxGroup) Creates a check box with the specified label, in the specified check box group, and set to the specified state.
Checkbox(String, CheckboxGroup, boolean) Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group.

Methods
Name Description
addItemListener(ItemListener) Adds the specified item listener to receive item events from this check box.
addNotify() Creates the peer of the Checkbox.
getCheckboxGroup() Determines this check box's group.
getLabel() Gets the label of this check box.
getSelectedObjects() Returns the an array (length 1) containing the checkbox label or null if the checkbox is not selected.
getState() Determines whether this check box is in the "on" or "off" state.
paramString() Returns the parameter string representing the state of this check box.
processEvent(AWTEvent) Processes events on this check box.
processItemEvent(ItemEvent) Processes item events occurring on this check box by dispatching them to any registered ItemListener objects.
removeItemListener(ItemListener) Removes the specified item listener so that the item listener no longer receives item events from this check box.
setCheckboxGroup(CheckboxGroup) Sets this check box's group to be the specified check box group.
setLabel(String) Sets this check box's label to be the string argument.
setState(boolean) Sets the state of this check box to the specified state.