class org.aswing.JMenuItem extends AbstractButton
Interfaces | |||
![]() | MenuElement |
|
Sub classes | ||||||||
![]() | JCheckBoxMenuItem, JMenu, JRadioButtonMenuItem |
|
An implementation of an item in a menu. A menu item is essentially a button
sitting in a list. When the user selects the "button", the action
associated with the menu item is performed. A JMenuItem
contained in a JPopupMenu
performs exactly that function.
@author paling
Instance Fields
var accelerator:KeyType
The key combination which invokes the menu item's action listeners without navigating the menu hierarchy. It is the UI's responsibility to install the correct action. Note that when the keyboard accelerator is typed, it will work whether or not the menu is currently displayed.
var isExternalAction:Bool
If a menu item is external action then clicking on it doesn't change the application navigation state.
function getRootPaneOwner(): JRootPane
Returns the window that owned this menu.
returns | window that owned this menu, or null no window owned this menu yet. |