|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.MenuComponent
|
+--java.awt.MenuItem
|
+--java.awt.CheckboxMenuItem
This class produces a checkbox that represents a choice in a menu.
| Constructor Summary | |
CheckboxMenuItem(String label)
Creates the checkbox item with the specified label. |
|
| Method Summary | |
void |
addNotify()
Creates the peer of the checkbox item. |
boolean |
getState()
Returns the state of this MenuItem. |
String |
paramString()
Returns the parameter String of this button. |
void |
setState(boolean t)
Sets the state of this MenuItem if it is a Checkbox. |
| Methods inherited from class java.awt.MenuItem |
disable, enable, enable, getLabel, isEnabled, setLabel |
| Methods inherited from class java.awt.MenuComponent |
getFont, getParent, getPeer, postEvent, removeNotify, setFont, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CheckboxMenuItem(String label)
label - the button label| Method Detail |
public void addNotify()
addNotify in class MenuItempublic boolean getState()
public void setState(boolean t)
t - the specified state of the checkboxpublic String paramString()
paramString in class MenuItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||