|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MenuItem
Nested Class Summary | |
---|---|
static interface |
MenuItem.MenuItemSelectedListener
Like ActionListener, except that it tells you whether it has handled the action. |
Method Summary | |
---|---|
void |
addActionListener(MenuItem.MenuItemSelectedListener actionListener)
|
java.awt.Font |
getFont()
Gets the font. |
java.lang.String |
getTitle()
Get the title that is used to get and refer to this item. |
java.lang.String |
getVisibleTitle()
Get the visible title of the menu item. |
boolean |
removeActionListener(MenuItem.MenuItemSelectedListener actionListener)
|
boolean |
setBackgroundColor(java.awt.Color color)
Sets the background color. |
boolean |
setEnabledDisabled()
If you have enabled or disabled this menu item, call this. |
boolean |
setFont(java.awt.Font font)
Sets the font. |
boolean |
setForegroundColor(java.awt.Color color)
Sets the foreground color. |
boolean |
setToolTipText(java.lang.String helpText)
Set help text. |
void |
setVisibleTitle(java.lang.String title)
Set the visible title of the menu item. |
Method Detail |
---|
java.lang.String getTitle()
title
- void setVisibleTitle(java.lang.String title)
title
- java.lang.String getVisibleTitle()
void addActionListener(MenuItem.MenuItemSelectedListener actionListener)
boolean removeActionListener(MenuItem.MenuItemSelectedListener actionListener)
boolean setEnabledDisabled()
boolean setForegroundColor(java.awt.Color color)
color
-
boolean setBackgroundColor(java.awt.Color color)
color
-
java.awt.Font getFont()
color
-
boolean setFont(java.awt.Font font)
color
-
boolean setToolTipText(java.lang.String helpText)
helpText
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |