| javax.swing.JMenuItem org.columba.core.gui.base.CMenuItem
CMenuItem | public class CMenuItem extends JMenuItem (Code) | | Default MenuItem which automatically sets a JavaHelp topic ID
based on the AbstractAction name attribute.
This is necessary to provide a complete context-specific help.
author: fdietz |
Constructor Summary | |
public | CMenuItem(Action action) Creates a menu item with a given action attached.
If JavaHelp topic ID is defined for the action, help is enabled
for the menu.
If the name of the action contains &, the next character is used as
mnemonic. | public | CMenuItem(String text) Creates a menu item with the specified text.
This does not enable JavaHelp support.
If the textcontains &, the next character is used as
mnemonic. |
CMenuItem | public CMenuItem(Action action)(Code) | | Creates a menu item with a given action attached.
If JavaHelp topic ID is defined for the action, help is enabled
for the menu.
If the name of the action contains &, the next character is used as
mnemonic. If not, the fall-back solution is to use default behaviour,
i.e. the mnemonic defined using setMnemonic on the action.
Parameters: action - The action to attach to the menu item |
CMenuItem | public CMenuItem(String text)(Code) | | Creates a menu item with the specified text.
This does not enable JavaHelp support.
If the textcontains &, the next character is used as
mnemonic. If not, no mnemonic is set.
Parameters: text - Text of menu item |
|
|