A CheckboxGroup object enforces mutual exclusion (also known as "radio button" behavior) among any number of Checkbox buttons. A Checkbox component can specify a CheckboxGroup object when created or with Checkbox.setCheckboxGroup(). If a Checkbox with a given CheckboxGroup object is selected, then the CheckboxGroup ensures that the previously selected Checkbox becomes unselected.
public class CheckboxGroup extends Object implements Serializable { // Public Constructor public CheckboxGroup(); // Public Instance Methods # public Checkbox getCurrent(); 1.1 public Checkbox getSelectedCheckbox(); # public synchronized void setCurrent(Checkbox box); 1.1 public synchronized void setSelectedCheckbox(Checkbox box); public String toString(); // Overrides Object }
Checkbox(), Checkbox.setCheckboxGroup(), CheckboxPeer.setCheckboxGroup()
Checkbox.getCheckboxGroup()