org.jfree.report.modules.gui.swing.common.action
public class ActionMenuItem extends JMenuItem
Constructor Summary | |
---|---|
ActionMenuItem() Default constructor. | |
ActionMenuItem(Icon icon)
Creates a menu item with the specified icon.
| |
ActionMenuItem(String text)
Creates a menu item with the specified label.
| |
ActionMenuItem(String text, Icon icon)
Creates a menu item with the specified label and icon.
| |
ActionMenuItem(String text, int i)
Creates a new menu item with the specified label and mnemonic.
| |
ActionMenuItem(Action action)
Creates a new menu item based on the specified action.
|
Method Summary | |
---|---|
Action | getAction()
Returns the assigned action or null if no action has been assigned.
|
void | setAction(Action newAction)
Assigns the given action to this menuitem. |
void | setEnabled(boolean b)
Enables and disables this button and if an action is assigned to this
menuitem the propertychange is forwarded to the assigned action.
|
Parameters: icon the icon.
Parameters: text the label.
Parameters: text the label. icon the icon.
Parameters: text the label. i the mnemonic.
Parameters: action the action.
Returns: the action.
Parameters: newAction the new action
Parameters: b the new enable-state of this menuitem