CheckboxMenuItemNameCheckboxMenuItem
DescriptionThe CheckboxMenuItem class represents a menu item with a boolean state. Class Definition
public class java.awt.CheckboxMenuItem extends java.awt.MenuItem implements java.awt.ItemSelectable { // Constructors public CheckboxMenuItem(); public CheckboxMenuItem (String label); public CheckboxMenuItem (String label, boolean state); // Instance Methods public void addItemListener (ItemListener l); public void addNotify(); public Object[] getSelectedObjects(); public boolean getState(); public String paramString(); public void removeItemListener (ItemListener l); public synchronized void setState (boolean condition); // Protected Instance Methods protected void processEvent (AWTEvent e); protected void processItemEvent (ItemEvent e); } ConstructorsCheckboxMenuItempublic CheckboxMenuItem()
public CheckboxMenuItem (String label)
public CheckboxMenuItem (String label, boolean state)
Instance MethodsaddItemListenerpublic void addItemListener (ItemListener l)
addNotifypublic void addNotify()
getSelectedObjectspublic Object[] getSelectedObjects()
getStatepublic boolean getState()
paramStringpublic String paramString()
removeItemListenerpublic void removeItemListener (ItemListener l)
setStatepublic synchronized void setState (boolean condition)
Protected Instance MethodsprocessEventprotected void processEvent(AWTEvent e)
processItemEventprotected void processItemEvent(ItemEvent e)
See AlsoItemEvent, ItemSelectable, MenuItem, String |
|