Package docking.menu
Class MenuHandler
- java.lang.Object
-
- docking.menu.MenuHandler
-
- All Implemented Interfaces:
java.util.EventListener,javax.swing.event.MenuListener,javax.swing.event.PopupMenuListener
- Direct Known Subclasses:
MenuBarMenuHandler,PopupMenuHandler
public abstract class MenuHandler extends java.lang.Object implements javax.swing.event.MenuListener, javax.swing.event.PopupMenuListenerMenuHandlerprovides a listener interface for menus. This interface has been provided to allow the listener to manage focus and help behavior.
-
-
Constructor Summary
Constructors Constructor Description MenuHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmenuCanceled(javax.swing.event.MenuEvent e)Invoked when a menu is cancelled (not sure if this is ever invoked)voidmenuDeselected(javax.swing.event.MenuEvent e)Invoked when a menu is no longer selected.voidmenuItemEntered(DockingActionIf action)Invoked when the mouse highlights a menu item.voidmenuItemExited(DockingActionIf action)Invoked when the mouse exits a menu item.voidmenuSelected(javax.swing.event.MenuEvent e)Invoked when a menu is selected.voidpopupMenuCanceled(javax.swing.event.PopupMenuEvent e)This method is called when the popup menu is canceledvoidpopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any timevoidpopupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)This method is called before the popup menu becomes visiblevoidprocessMenuAction(DockingActionIf action, java.awt.event.ActionEvent event)Invoked when a menu action item is selected.
-
-
-
Method Detail
-
processMenuAction
public void processMenuAction(DockingActionIf action, java.awt.event.ActionEvent event)
Invoked when a menu action item is selected.- Parameters:
action- associated action.event- event details.
-
menuItemEntered
public void menuItemEntered(DockingActionIf action)
Invoked when the mouse highlights a menu item.- Parameters:
action- associated action.
-
menuItemExited
public void menuItemExited(DockingActionIf action)
Invoked when the mouse exits a menu item.- Parameters:
action- associated action.
-
menuCanceled
public void menuCanceled(javax.swing.event.MenuEvent e)
Invoked when a menu is cancelled (not sure if this is ever invoked)- Specified by:
menuCanceledin interfacejavax.swing.event.MenuListener- See Also:
MenuListener.menuCanceled(javax.swing.event.MenuEvent)
-
menuDeselected
public void menuDeselected(javax.swing.event.MenuEvent e)
Invoked when a menu is no longer selected. This is always preceeded by a menuSelected invocation. This is invoked prior to the processMenuAction if an action item is selected.- Specified by:
menuDeselectedin interfacejavax.swing.event.MenuListener- See Also:
MenuListener.menuDeselected(javax.swing.event.MenuEvent)
-
menuSelected
public void menuSelected(javax.swing.event.MenuEvent e)
Invoked when a menu is selected.- Specified by:
menuSelectedin interfacejavax.swing.event.MenuListener- See Also:
MenuListener.menuSelected(javax.swing.event.MenuEvent)
-
popupMenuWillBecomeVisible
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
This method is called before the popup menu becomes visible- Specified by:
popupMenuWillBecomeVisiblein interfacejavax.swing.event.PopupMenuListener- See Also:
PopupMenuListener.popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent)
-
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time- Specified by:
popupMenuWillBecomeInvisiblein interfacejavax.swing.event.PopupMenuListener- See Also:
PopupMenuListener.popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent)
-
popupMenuCanceled
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
This method is called when the popup menu is canceled- Specified by:
popupMenuCanceledin interfacejavax.swing.event.PopupMenuListener- See Also:
PopupMenuListener.popupMenuCanceled(javax.swing.event.PopupMenuEvent)
-
-