public interface KeyboardController
KeyEvent, forwarding them to registered listeners. The
listeners are only informed about events that occurred in a part of the dock-tree below them.| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalListener(KeyListener listener)
Adds a global key listener to this controller.
|
void |
addListener(KeyboardListener listener)
Adds a listener to this controller.
|
DockController |
getController()
Gets the
DockController in whose realm this KeyboardController works. |
void |
kill()
Stops this controller.
|
void |
removeGlobalListener(KeyListener listener)
Removes a listener from this controller.
|
void |
removeListener(KeyboardListener listener)
Removes a listener from this controller.
|
void addGlobalListener(KeyListener listener)
KeyListeners
will receive a notification for every event that this controller handles.
The listeners will also be informed about events that are consumed.listener - the new listenervoid removeGlobalListener(KeyListener listener)
listener - the listener to removevoid addListener(KeyboardListener listener)
KeyEvent occurs in the subtree below
the listeners DockElement.listener - the new listenervoid removeListener(KeyboardListener listener)
listener - the listener to removeDockController getController()
DockController in whose realm this KeyboardController works.@FrameworkOnly void kill()
Copyright © 2017 Docking Frames. All rights reserved.