Package docking.menu
Class MenuHandler
java.lang.Object
docking.menu.MenuHandler
- All Implemented Interfaces:
EventListener
,MenuListener
,PopupMenuListener
- Direct Known Subclasses:
MenuBarMenuHandler
,PopupMenuHandler
MenuHandler
provides a listener interface for menus.
This interface has been provided to allow the listener to
manage focus and help behavior.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when a menu is cancelled (not sure if this is ever invoked)void
Invoked when a menu is no longer selected.void
menuItemEntered
(DockingActionIf action) Invoked when the mouse highlights a menu item.void
menuItemExited
(DockingActionIf action) Invoked when the mouse exits a menu item.void
Invoked when a menu is selected.void
This method is called when the popup menu is canceledvoid
This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any timevoid
This method is called before the popup menu becomes visiblevoid
processMenuAction
(DockingActionIf action, ActionEvent event) Invoked when a menu action item is selected.
-
Constructor Details
-
MenuHandler
public MenuHandler()
-
-
Method Details
-
processMenuAction
Invoked when a menu action item is selected.- Parameters:
action
- associated action.event
- event details.
-
popupMenuWillBecomeVisible
This method is called before the popup menu becomes visible- Specified by:
popupMenuWillBecomeVisible
in interfacePopupMenuListener
- See Also:
-
popupMenuWillBecomeInvisible
This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time- Specified by:
popupMenuWillBecomeInvisible
in interfacePopupMenuListener
- See Also:
-
popupMenuCanceled
This method is called when the popup menu is canceled- Specified by:
popupMenuCanceled
in interfacePopupMenuListener
- See Also:
-