Class ActionsMenuCreator.DisableLaterOnEnableListener

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener
    Enclosing class:
    ActionsMenuCreator

    private static final class ActionsMenuCreator.DisableLaterOnEnableListener
    extends java.lang.Object
    implements java.beans.PropertyChangeListener
    • Field Detail

      • menuReference

        private final java.lang.ref.WeakReference<javax.swing.MenuElement> menuReference
      • actionReference

        private final java.lang.ref.WeakReference<NMAction> actionReference
    • Constructor Detail

      • DisableLaterOnEnableListener

        private DisableLaterOnEnableListener​(javax.swing.MenuElement menu,
                                             NMAction action)
    • Method Detail

      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • unregister

        void unregister()
      • getAction

        @CheckForNull
        private NMAction getAction()