javax.swing.plaf.basic
Class BasicMenuUI.MenuKeyHandler

java.lang.Object
  extended byjavax.swing.plaf.basic.BasicMenuUI.MenuKeyHandler
All Implemented Interfaces:
EventListener, MenuKeyListener
Enclosing class:
BasicMenuUI

private class BasicMenuUI.MenuKeyHandler
extends Object
implements MenuKeyListener

Handles the mnemonic handling for the JMenu and JMenuItems.


Constructor Summary
private BasicMenuUI.MenuKeyHandler()
           
 
Method Summary
private  char lower(char keyChar)
           
 void menuKeyPressed(MenuKeyEvent e)
          Handles the mnemonics for the menu items.
 void menuKeyReleased(MenuKeyEvent e)
          Invoked when a key has been released.
 void menuKeyTyped(MenuKeyEvent e)
          Opens the SubMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMenuUI.MenuKeyHandler

private BasicMenuUI.MenuKeyHandler()
Method Detail

menuKeyTyped

public void menuKeyTyped(MenuKeyEvent e)
Opens the SubMenu

Specified by:
menuKeyTyped in interface MenuKeyListener

menuKeyPressed

public void menuKeyPressed(MenuKeyEvent e)
Handles the mnemonics for the menu items. Will also handle duplicate mnemonics. Perhaps this should be moved into BasicPopupMenuUI. See 4670831

Specified by:
menuKeyPressed in interface MenuKeyListener

menuKeyReleased

public void menuKeyReleased(MenuKeyEvent e)
Description copied from interface: MenuKeyListener
Invoked when a key has been released.

Specified by:
menuKeyReleased in interface MenuKeyListener

lower

private char lower(char keyChar)