Package net.simplace.ui
Class FWKeyEventDispatcher
java.lang.Object
net.simplace.ui.FWKeyEventDispatcher
- All Implemented Interfaces:
KeyEventDispatcher
Delegates a keyEvent to the wanted actionListener not recognizing the current focus owner.
- Author:
- Andreas Enders
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyEvent
(int aKeyCode, int aModifiers, ActionListener aListener, String aActionCommand) Adds a keyEvent to perform.boolean
dispatchKeyEvent
(KeyEvent aKeyEvent) Delegates the events.static FWKeyEventDispatcher
singleton methodvoid
removeKeyEvent
(int aKeyCode, int aModifiers) Removes the keyEvent for the given actionCommand.
-
Method Details
-
getInstance
singleton method -
dispatchKeyEvent
Delegates the events.- Specified by:
dispatchKeyEvent
in interfaceKeyEventDispatcher
-
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.
-