|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.menus.MenuItemStub org.browsecode.helpers.menus.MenuItemJMenuItem
public class MenuItemJMenuItem
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.browsecode.helpers.menus.MenuItem |
---|
MenuItem.MenuItemSelectedListener |
Field Summary | |
---|---|
protected javax.swing.JMenuItem |
jMenuItem
|
Constructor Summary | |
---|---|
protected |
MenuItemJMenuItem(MenuBarHelper menuBarHelper,
javax.swing.JMenuItem menuItem,
java.lang.String title,
javax.swing.KeyStroke keyStroke)
|
|
MenuItemJMenuItem(MenuBarHelper menuBarHelper,
java.lang.String title,
javax.swing.Icon icon)
|
|
MenuItemJMenuItem(MenuBarHelper menuBarHelper,
java.lang.String title,
javax.swing.Icon icon,
javax.swing.KeyStroke keyStroke)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
The underlying JMenuItem. |
java.awt.Font |
getFont()
Gets the font. |
java.lang.String |
getVisibleTitle()
Get the visible title of the menu item. |
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. |
protected void |
setVisibleTitleAfterTranslation(java.lang.String title)
Implement this to set the visible title. |
Methods inherited from class org.browsecode.helpers.menus.MenuItemStub |
---|
addActionListener, canAListenerHandleAction, fireAction, getMenuBarHelper, getTitle, removeActionListener, setTitle, setVisibleTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JMenuItem jMenuItem
Constructor Detail |
---|
public MenuItemJMenuItem(MenuBarHelper menuBarHelper, java.lang.String title, javax.swing.Icon icon)
public MenuItemJMenuItem(MenuBarHelper menuBarHelper, java.lang.String title, javax.swing.Icon icon, javax.swing.KeyStroke keyStroke)
protected MenuItemJMenuItem(MenuBarHelper menuBarHelper, javax.swing.JMenuItem menuItem, java.lang.String title, javax.swing.KeyStroke keyStroke)
Method Detail |
---|
public java.lang.String getVisibleTitle()
MenuItem
getVisibleTitle
in interface MenuItem
protected void setVisibleTitleAfterTranslation(java.lang.String title)
MenuItemStub
setVisibleTitleAfterTranslation
in class MenuItemStub
public boolean setForegroundColor(java.awt.Color color)
MenuItem
setForegroundColor
in interface MenuItem
setForegroundColor
in class MenuItemStub
public boolean setBackgroundColor(java.awt.Color color)
MenuItem
setBackgroundColor
in interface MenuItem
setBackgroundColor
in class MenuItemStub
public java.awt.Font getFont()
MenuItem
getFont
in interface MenuItem
getFont
in class MenuItemStub
public boolean setFont(java.awt.Font font)
MenuItem
setFont
in interface MenuItem
setFont
in class MenuItemStub
public boolean setToolTipText(java.lang.String helpText)
MenuItem
setToolTipText
in interface MenuItem
setToolTipText
in class MenuItemStub
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public boolean setEnabledDisabled()
MenuItem
setEnabledDisabled
in interface MenuItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |