net.sf.freecol.client.gui.action
Class FreeColAction.InnerMenuKeyListener

java.lang.Object
  extended by net.sf.freecol.client.gui.action.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

Constructor Summary
FreeColAction.InnerMenuKeyListener()
           
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeColAction.InnerMenuKeyListener

public FreeColAction.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