|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.BMenuItem
buoy.widget.BCheckBoxMenuItem
public class BCheckBoxMenuItem
A BCheckBoxMenuItem is a menu item for making simple boolean selectons. Selecting it toggles it on and off.
In addition to the event types generated by all Widgets, BCheckBoxMenuItems generate the following event types:
| Constructor Summary | |
|---|---|
BCheckBoxMenuItem()
Create a new BCheckBoxMenuItem with no label, which is initially deselected. |
|
BCheckBoxMenuItem(java.lang.String text,
boolean state)
Create a new BCheckBoxMenuItem. |
|
BCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon image,
boolean state)
Create a new BCheckBoxMenuItem. |
|
BCheckBoxMenuItem(java.lang.String text,
Shortcut shortcut,
boolean state)
Create a new BCheckBoxMenuItem. |
|
BCheckBoxMenuItem(java.lang.String text,
Shortcut shortcut,
javax.swing.Icon image,
boolean state)
Create a new BCheckBoxMenuItem. |
|
| Method Summary | |
|---|---|
javax.swing.JMenuItem |
getComponent()
Get the java.awt.Component corresponding to this Widget. |
boolean |
getState()
Get the selection state of this menu item. |
void |
setState(boolean selected)
Set the selection state of this menu item. |
| Methods inherited from class buoy.widget.BMenuItem |
|---|
getActionCommand, getIcon, getMnemonic, getShortcut, getText, setActionCommand, setIcon, setMnemonic, setShortcut, setText |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BCheckBoxMenuItem()
public BCheckBoxMenuItem(java.lang.String text,
boolean state)
text - the text to display on the BCheckBoxMenuItemstate - the initial selection state of the BCheckBoxMenuItem
public BCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon image,
boolean state)
text - the text to display on the BCheckBoxMenuItemimage - the image to display next to the menu itemstate - the initial selection state of the BCheckBoxMenuItem
public BCheckBoxMenuItem(java.lang.String text,
Shortcut shortcut,
boolean state)
text - the text to display on the BCheckBoxMenuItemshortcut - a keyboard shortcut which will activate this menu itemstate - the initial selection state of the BCheckBoxMenuItem
public BCheckBoxMenuItem(java.lang.String text,
Shortcut shortcut,
javax.swing.Icon image,
boolean state)
text - the text to display on the BCheckBoxMenuItemshortcut - a keyboard shortcut which will activate this menu itemimage - the image to display next to the menu itemstate - the initial selection state of the BCheckBoxMenuItem| Method Detail |
|---|
public javax.swing.JMenuItem getComponent()
Widget
getComponent in class BMenuItempublic boolean getState()
public void setState(boolean selected)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||