Class FreeColAction.InnerMenuKeyListener

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.MenuKeyListener
    Enclosing class:
    FreeColAction

    public class FreeColAction.InnerMenuKeyListener
    extends java.lang.Object
    implements javax.swing.event.MenuKeyListener
    A class used by Actions which have a mnemonic. Those Actions should assign this listener to the JMenuItem they are a part of. This captures the mnemonic key press and keeps other menus from processing keys meant for other actions.
    Author:
    johnathanj
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int mnemonic  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void menuKeyPressed​(javax.swing.event.MenuKeyEvent e)  
      void menuKeyReleased​(javax.swing.event.MenuKeyEvent e)  
      void menuKeyTyped​(javax.swing.event.MenuKeyEvent e)  
      • Methods inherited from class java.lang.Object

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

      • mnemonic

        final int mnemonic
    • Constructor Detail

      • InnerMenuKeyListener

        public InnerMenuKeyListener()
    • Method Detail

      • menuKeyPressed

        public void menuKeyPressed​(javax.swing.event.MenuKeyEvent e)
        Specified by:
        menuKeyPressed in interface javax.swing.event.MenuKeyListener
      • menuKeyReleased

        public void menuKeyReleased​(javax.swing.event.MenuKeyEvent e)
        Specified by:
        menuKeyReleased in interface javax.swing.event.MenuKeyListener
      • menuKeyTyped

        public void menuKeyTyped​(javax.swing.event.MenuKeyEvent e)
        Specified by:
        menuKeyTyped in interface javax.swing.event.MenuKeyListener