Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisablingListener

        private DisablingListener()
    • Method Detail

      • menuSelected

        public void menuSelected​(javax.swing.event.MenuEvent e)
        Invoked when a menu is selected.
        Specified by:
        menuSelected in interface javax.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 interface javax.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 interface javax.swing.event.MenuListener
        Parameters:
        e - a MenuEvent object
      • popupMenuWillBecomeVisible

        public void popupMenuWillBecomeVisible​(javax.swing.event.PopupMenuEvent e)
        Specified by:
        popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListener
      • popupMenuWillBecomeInvisible

        public void popupMenuWillBecomeInvisible​(javax.swing.event.PopupMenuEvent e)
        Specified by:
        popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListener
      • popupMenuCanceled

        public void popupMenuCanceled​(javax.swing.event.PopupMenuEvent e)
        Specified by:
        popupMenuCanceled in interface javax.swing.event.PopupMenuListener