Changed Methods |
void addMenuDragMouseListener(MenuDragMouseListener )
|
Documentation changed from old to new. |
Adds a MenuDragMouseListener to the menu item. |
void addMenuKeyListener(MenuKeyListener )
|
Documentation changed from old to new. |
Adds a MenuKeyListener to the menu item. |
void configurePropertiesFromAction(Action )
|
Documentation changed from old to new. |
Factory method which sets the ActionEvent source's properties according to values from the Action instance. |
PropertyChangeListener createActionPropertyChangeListener(Action )
|
Documentation changed from old to new. |
Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. |
void fireMenuDragMouseDragged(MenuDragMouseEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuDragMouseEntered(MenuDragMouseEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuDragMouseExited(MenuDragMouseEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuDragMouseReleased(MenuDragMouseEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuKeyPressed(MenuKeyEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuKeyReleased(MenuKeyEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireMenuKeyTyped(MenuKeyEvent )
|
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
KeyStroke getAccelerator()
|
Documentation changed from old to new. |
Returns the KeyStroke which serves as an accelerator for the menu item. |
AccessibleContext getAccessibleContext()
|
Documentation changed from old to new. |
Returns the AccessibleContext associated with this JMenuItem . |
MenuElement[] getSubElements()
|
Documentation changed from old to new. |
This method returns an array containing the sub-menu components for this menu component. |
String getUIClassID()
|
Documentation changed from old to new. |
Returns the suffix used to construct the name of the L&F class used to render this component. |
void init(String, Icon)
|
Documentation changed from old to new. |
Initializes the menu item with the specified text and icon. |
void menuSelectionChanged(boolean )
|
Documentation changed from old to new. |
Called by the MenuSelectionManager when the MenuElement is selected or unselected. |
String paramString()
|
Documentation changed from old to new. |
Returns a string representation of this JMenuItem . |
void processMenuDragMouseEvent(MenuDragMouseEvent )
|
Documentation changed from old to new. |
Handles mouse drag in a menu. |
void processMenuKeyEvent(MenuKeyEvent )
|
Documentation changed from old to new. |
Handles a keystroke in a menu. |
void removeMenuDragMouseListener(MenuDragMouseListener )
|
Documentation changed from old to new. |
Removes a MenuDragMouseListener from the menu item. |
void removeMenuKeyListener(MenuKeyListener )
|
Documentation changed from old to new. |
Removes a MenuKeyListener from the menu item. |
void setAccelerator(KeyStroke )
|
Documentation changed from old to new. |
Sets the key combination which invokes the menu item's action listeners without navigating the menu hierarchy. |
void setEnabled(boolean )
|
Documentation changed from old to new. |
Enables or disables the menu item. |
Component getComponent()
|
Documentation changed from old to new. |
Returns the java.awt.Component used to paint this object. |
void processKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)
|
Documentation changed from old to new. |
Processes a key event forwarded from the MenuSelectionManager and changes the menu selection if necessary by using MenuSelectionManager 's API. |
void processMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)
|
Documentation changed from old to new. |
Processes a mouse event forwarded from the MenuSelectionManager and changes the menu selection if necessary by using the MenuSelectionManager 's API. |
void setUI(MenuItemUI )
|
Documentation changed from old to new. |
Sets the look and feel object that renders this component. |