Class MenuKeyProcessor


  • public class MenuKeyProcessor
    extends java.lang.Object
    Handles the processing of key events while menus or popup menus are open.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean processMenuKeyEvent​(java.awt.event.KeyEvent event)
      Checks the given event to see if it has a registered action to perform while a menu is open.
      • Methods inherited from class java.lang.Object

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

      • MenuKeyProcessor

        public MenuKeyProcessor()
    • Method Detail

      • processMenuKeyEvent

        public static boolean processMenuKeyEvent​(java.awt.event.KeyEvent event)
        Checks the given event to see if it has a registered action to perform while a menu is open. If a menu is open and a handler exists, the handler will be called.
        Parameters:
        event - the event to check
        Returns:
        true if the event triggered a handler