bibliothek.gui.dock.event
Interface KeyboardListener

All Superinterfaces:
LocatedListener

public interface KeyboardListener
extends LocatedListener

A listener added to the KeyboardController, this listener receives a notification whenever a keyevent is dispatched in a DockElement below the location of this listener.

Author:
Benjamin Sigg

Method Summary
 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.
 
Methods inherited from interface bibliothek.gui.dock.event.LocatedListener
getTreeLocation
 

Method Detail

keyPressed

boolean keyPressed(DockElement element,
                   KeyEvent event)
Called when a key has been pressed.

Parameters:
element - the source of the event
event - the description of the event
Returns:
true if this listener processed the event, and the event has not to be forwarded any further.

keyReleased

boolean keyReleased(DockElement element,
                    KeyEvent event)
Called when a key has been released.

Parameters:
element - the source of the event
event - the description of the event
Returns:
true if this listener processed the event, and the event has not to be forwarded any further.

keyTyped

boolean keyTyped(DockElement element,
                 KeyEvent event)
Called when a key has been types.

Parameters:
element - the source of the event
event - the description of the event
Returns:
true if this listener processed the event, and the event has not to be forwarded any further.