bibliothek.gui.dock.common.event
Interface CKeyboardListener


public interface CKeyboardListener

A CKeyboardListener gets informed about KeyEvents which happen on certain CDockables. The events can fall through several Dockables until they are processed. Once they are processed, no other listener is informed about them.

Author:
Benjamin Sigg
See Also:
CDockable.addKeyboardListener(CKeyboardListener), CDockable.removeKeyboardListener(CKeyboardListener), CControl.addKeyboardListener(CKeyboardListener), CControl.removeKeyboardListener(CKeyboardListener)

Method Summary
 boolean keyPressed(CDockable source, java.awt.event.KeyEvent event)
          Called when a key was pressed on a child or on source.
 boolean keyReleased(CDockable source, java.awt.event.KeyEvent event)
          Called when a key was released on a child or on source.
 boolean keyTyped(CDockable source, java.awt.event.KeyEvent event)
          Called when a key was typed on a child or on source.
 

Method Detail

keyPressed

boolean keyPressed(CDockable source,
                   java.awt.event.KeyEvent event)
Called when a key was pressed on a child or on source.

Parameters:
source - the source of the event
event - the event
Returns:
true if this method processed the event and the event must not be forwarded to other listeners, false if this listener did not process the event

keyReleased

boolean keyReleased(CDockable source,
                    java.awt.event.KeyEvent event)
Called when a key was released on a child or on source.

Parameters:
source - the source of the event
event - the event
Returns:
true if this method processed the event and the event must not be forwarded to other listeners, false if this listener did not process the event

keyTyped

boolean keyTyped(CDockable source,
                 java.awt.event.KeyEvent event)
Called when a key was typed on a child or on source.

Parameters:
source - the source of the event
event - the event
Returns:
true if this method processed the event and the event must not be forwarded to other listeners, false if this listener did not process the event