|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Menu
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.browsecode.helpers.menus.MenuItem |
---|
MenuItem.MenuItemSelectedListener |
Method Summary | |
---|---|
void |
addSeparator()
Since it's unclear whether or not an item has actually been added and where, this method should check to see whether the last item was a separator, and only add one if there was not one already. |
CheckboxMenuItem |
getCheckboxMenuItem(java.lang.String title,
javax.swing.Icon icon,
int acceleratorLetter)
|
CheckboxMenuItem |
getCheckboxMenuItem(java.lang.String title,
javax.swing.Icon icon,
javax.swing.KeyStroke accelerator)
|
Menu |
getMenu(java.lang.String title)
Will get an existing item or create a new item and add it if it does not exist. |
MenuItem |
getMenuItem(java.lang.String title)
Will get an existing item or create a new item and add it if it does not exist. |
MenuItem |
getMenuItem(java.lang.String title,
javax.swing.Icon icon)
Will get an existing item or create a new item and add it if it does not exist. |
MenuItem |
getMenuItem(java.lang.String title,
javax.swing.Icon icon,
int acceleratorLetter)
Will get an existing item or create a new item and add it if it does not exist. |
MenuItem |
getMenuItem(java.lang.String title,
javax.swing.Icon icon,
javax.swing.KeyStroke accelerator)
Will get an existing item or create a new item and add it if it does not exist. |
java.lang.String |
getTitle()
Get the title that is used to get and refer to this item. |
MenuItem |
hasMenuItem(java.lang.String title)
Return an existing item. |
Methods inherited from interface org.browsecode.helpers.menus.MenuItem |
---|
addActionListener, getFont, getVisibleTitle, removeActionListener, setBackgroundColor, setEnabledDisabled, setFont, setForegroundColor, setToolTipText, setVisibleTitle |
Method Detail |
---|
MenuItem hasMenuItem(java.lang.String title)
title
-
MenuItem getMenuItem(java.lang.String title)
title
-
MenuItem getMenuItem(java.lang.String title, javax.swing.Icon icon)
title
-
MenuItem getMenuItem(java.lang.String title, javax.swing.Icon icon, int acceleratorLetter)
title
- accellerator
- the key to execute this menu item on -- this should be taken from KeyEvent, anything that starts with VK_, for example: getMenuItem("Select All", null, KeyEvent_VK_A);
MenuItem getMenuItem(java.lang.String title, javax.swing.Icon icon, javax.swing.KeyStroke accelerator)
title
- accellerator
- the KeyStroke to execute this menu item on.
CheckboxMenuItem getCheckboxMenuItem(java.lang.String title, javax.swing.Icon icon, int acceleratorLetter)
CheckboxMenuItem getCheckboxMenuItem(java.lang.String title, javax.swing.Icon icon, javax.swing.KeyStroke accelerator)
Menu getMenu(java.lang.String title)
title
-
void addSeparator()
java.lang.String getTitle()
MenuItem
getTitle
in interface MenuItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |