|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.menus.MenuItemStub
public abstract class MenuItemStub
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.browsecode.helpers.menus.MenuItem |
---|
MenuItem.MenuItemSelectedListener |
Constructor Summary | |
---|---|
MenuItemStub(MenuBarHelper menuBarHelper)
|
Method Summary | |
---|---|
void |
addActionListener(MenuItem.MenuItemSelectedListener actionListener)
|
protected boolean |
canAListenerHandleAction()
For use in setEnabledDisabled(), to test whether listeners will react to this. |
protected boolean |
fireAction(java.awt.event.ActionEvent e)
|
java.awt.Font |
getFont()
Gets the font. |
protected MenuBarHelper |
getMenuBarHelper()
|
java.lang.String |
getTitle()
Get the title that is used to get and refer to this item. |
boolean |
removeActionListener(MenuItem.MenuItemSelectedListener actionListener)
|
boolean |
setBackgroundColor(java.awt.Color color)
Sets the background color. |
boolean |
setFont(java.awt.Font font)
Sets the font. |
boolean |
setForegroundColor(java.awt.Color color)
Sets the foreground color. |
void |
setTitle(java.lang.String title)
|
boolean |
setToolTipText(java.lang.String helpText)
Set help text. |
void |
setVisibleTitle(java.lang.String title)
Set the visible title of the menu item. |
protected abstract void |
setVisibleTitleAfterTranslation(java.lang.String title)
Implement this to set the visible title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.browsecode.helpers.menus.MenuItem |
---|
getVisibleTitle, setEnabledDisabled |
Constructor Detail |
---|
public MenuItemStub(MenuBarHelper menuBarHelper)
Method Detail |
---|
public void addActionListener(MenuItem.MenuItemSelectedListener actionListener)
addActionListener
in interface MenuItem
protected MenuBarHelper getMenuBarHelper()
public boolean removeActionListener(MenuItem.MenuItemSelectedListener actionListener)
removeActionListener
in interface MenuItem
protected boolean fireAction(java.awt.event.ActionEvent e)
public java.lang.String getTitle()
MenuItem
getTitle
in interface MenuItem
public void setTitle(java.lang.String title)
title
- The title to set.public void setVisibleTitle(java.lang.String title)
MenuItem
setVisibleTitle
in interface MenuItem
title
- The title to set.protected abstract void setVisibleTitleAfterTranslation(java.lang.String title)
title
- public boolean setForegroundColor(java.awt.Color color)
MenuItem
setForegroundColor
in interface MenuItem
public boolean setBackgroundColor(java.awt.Color color)
MenuItem
setBackgroundColor
in interface MenuItem
public java.awt.Font getFont()
MenuItem
getFont
in interface MenuItem
public boolean setFont(java.awt.Font font)
MenuItem
setFont
in interface MenuItem
public boolean setToolTipText(java.lang.String helpText)
MenuItem
setToolTipText
in interface MenuItem
protected boolean canAListenerHandleAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |