Package com.nomagic.actions
Class ActionsMenuCreator.DisablingListener
- java.lang.Object
-
- com.nomagic.actions.ActionsMenuCreator.DisablingListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.MenuListener
,javax.swing.event.PopupMenuListener
- Enclosing class:
- ActionsMenuCreator
private static class ActionsMenuCreator.DisablingListener extends java.lang.Object implements javax.swing.event.MenuListener, javax.swing.event.PopupMenuListener
Class used to disable parent menu if all inner menu items of this parent are disabled.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DisablingListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
menuCanceled(javax.swing.event.MenuEvent e)
Invoked when the menu is canceled.void
menuDeselected(javax.swing.event.MenuEvent e)
Invoked when the menu is deselected.void
menuSelected(javax.swing.event.MenuEvent e)
Invoked when a menu is selected.void
popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
void
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
void
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
-
-
-
Method Detail
-
menuSelected
public void menuSelected(javax.swing.event.MenuEvent e)
Invoked when a menu is selected.- Specified by:
menuSelected
in interfacejavax.swing.event.MenuListener
- Parameters:
e
- a MenuEvent object
-
menuDeselected
public void menuDeselected(javax.swing.event.MenuEvent e)
Invoked when the menu is deselected.- Specified by:
menuDeselected
in interfacejavax.swing.event.MenuListener
- Parameters:
e
- a MenuEvent object
-
menuCanceled
public void menuCanceled(javax.swing.event.MenuEvent e)
Invoked when the menu is canceled.- Specified by:
menuCanceled
in interfacejavax.swing.event.MenuListener
- Parameters:
e
- a MenuEvent object
-
popupMenuWillBecomeVisible
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeVisible
in interfacejavax.swing.event.PopupMenuListener
-
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeInvisible
in interfacejavax.swing.event.PopupMenuListener
-
popupMenuCanceled
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuCanceled
in interfacejavax.swing.event.PopupMenuListener
-
-