Package net.sf.freecol.client.gui.action
Class FreeColAction.InnerMenuKeyListener
- java.lang.Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
mnemonic
-
Constructor Summary
Constructors Constructor Description InnerMenuKeyListener()
-
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)
-
-
-
Method Detail
-
menuKeyPressed
public void menuKeyPressed(javax.swing.event.MenuKeyEvent e)
- Specified by:
menuKeyPressed
in interfacejavax.swing.event.MenuKeyListener
-
menuKeyReleased
public void menuKeyReleased(javax.swing.event.MenuKeyEvent e)
- Specified by:
menuKeyReleased
in interfacejavax.swing.event.MenuKeyListener
-
menuKeyTyped
public void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
- Specified by:
menuKeyTyped
in interfacejavax.swing.event.MenuKeyListener
-
-