Package docking.test

Class TestKeyEventDispatcher

java.lang.Object
docking.test.TestKeyEventDispatcher

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

    • TestKeyEventDispatcher

      public TestKeyEventDispatcher()
  • Method Details

    • dispatchKeyEvent

      public static boolean dispatchKeyEvent(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