CheckboxNameCheckbox
DescriptionThe Checkbox is a Component that provides a true or false toggle switch for user input. Class Definition
public class java.awt.Checkbox extends java.awt.Component implements java.awt.ItemSelectable { // Constructors public Checkbox(); public Checkbox (String label); public Checkbox (String label, boolean state); public Checkbox (String label, boolean state, CheckboxGroup group); public Checkbox (String label, CheckboxGroup group, boolean state); // Instance Methods public void addItemListener (ItemListener l); public void addNotify(); public CheckboxGroup getCheckboxGroup(); public String getLabel(); public Object[] getSelectedObjects(); public boolean getState(); public void removeItemListener (ItemListener l); public void setCheckboxGroup (CheckboxGroup group); public synchronized void setLabel (String label); public void setState (boolean state); // Protected Instance Methods protected String paramString(); protected void processEvent (AWTEvent e); protected void processItemEvent (ItemEvent e); } ConstructorsCheckboxpublic Checkbox()
public Checkbox (String label)
public Checkbox (String label, boolean state)
public Checkbox (String label, boolean state, CheckboxGroup group)
public Checkbox (String label, CheckboxGroup group, boolean state)
Instance MethodsaddItemListenerpublic void addItemListener (ItemListener l)
addNotifypublic void addNotify()
getCheckboxGrouppublic CheckboxGroup getCheckboxGroup()
getLabelpublic String getLabel()
getSelectedObjectspublic Object[] getSelectedObjects()
getStatepublic boolean getState()
removeItemListenerpublic void removeItemListener (ItemListener l)
setCheckboxGrouppublic void setCheckboxGroup (CheckboxGroup group)
setLabelpublic synchronized void setLabel (String label)
setStatepublic void setState (boolean state)
Protected Instance MethodsparamStringprotected String paramString()
processEventprotected void processEvent(AWTEvent e)
processItemEventprotected void processItemEvent(ItemEvent e)
See AlsoCheckboxGroup, Component, ItemEvent, ItemSelectable, String |
|