Package docking.test

Class TestKeyEventDispatcher


  • public class TestKeyEventDispatcher
    extends java.lang.Object
    A class that helps to delegate key events to the system override key event dispatcher. This class exists to avoid package restrictions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean dispatchKeyEvent​(java.awt.event.KeyEvent event)
      Uses the system-overridden KeyEventDispatcher to send the event.
      • Methods inherited from class java.lang.Object

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

      • TestKeyEventDispatcher

        public TestKeyEventDispatcher()
    • Method Detail

      • dispatchKeyEvent

        public static boolean dispatchKeyEvent​(java.awt.event.KeyEvent event)
        Uses the system-overridden KeyEventDispatcher to send the event.
        Parameters:
        event - the event
        Returns:
        false if the event was not handled by this class and should continue to be processed; true if the the event was handled and no further processing is needed