public interface KeyboardListener extends LocatedListener
KeyboardController
,
this listener receives a notification whenever a keyevent is dispatched
in a DockElement
below the location of this
listener.Modifier and Type | Method and Description |
---|---|
boolean |
keyPressed(DockElement element,
KeyEvent event)
Called when a key has been pressed.
|
boolean |
keyReleased(DockElement element,
KeyEvent event)
Called when a key has been released.
|
boolean |
keyTyped(DockElement element,
KeyEvent event)
Called when a key has been types.
|
getTreeLocation
boolean keyPressed(DockElement element, KeyEvent event)
element
- the source of the eventevent
- the description of the eventtrue
if this listener processed the event, and
the event has not to be forwarded any further.boolean keyReleased(DockElement element, KeyEvent event)
element
- the source of the eventevent
- the description of the eventtrue
if this listener processed the event, and
the event has not to be forwarded any further.boolean keyTyped(DockElement element, KeyEvent event)
element
- the source of the eventevent
- the description of the eventtrue
if this listener processed the event, and
the event has not to be forwarded any further.