Class FWKeyEventDispatcher

java.lang.Object
net.simplace.ui.FWKeyEventDispatcher
All Implemented Interfaces:
KeyEventDispatcher

public final class FWKeyEventDispatcher extends Object implements KeyEventDispatcher
Delegates a keyEvent to the wanted actionListener not recognizing the current focus owner.
Author:
Andreas Enders
  • Method Details

    • getInstance

      public static FWKeyEventDispatcher getInstance()
      singleton method
    • dispatchKeyEvent

      public boolean dispatchKeyEvent(KeyEvent aKeyEvent)
      Delegates the events.
      Specified by:
      dispatchKeyEvent in interface KeyEventDispatcher
    • addKeyEvent

      public void addKeyEvent(int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand)
      Adds a keyEvent to perform.
    • removeKeyEvent

      public void removeKeyEvent(int aKeyCode, int aModifiers)
      Removes the keyEvent for the given actionCommand.