Interface CKeyboardListener

All Known Implementing Classes:
CancelDragAndDropOperation

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:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    keyPressed(CDockable source, KeyEvent event)
    Called when a key was pressed on a child or on source.
    boolean
    keyReleased(CDockable source, KeyEvent event)
    Called when a key was released on a child or on source.
    boolean
    keyTyped(CDockable source, KeyEvent event)
    Called when a key was typed on a child or on source.
  • Method Details

    • keyPressed

      boolean keyPressed(CDockable source, 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, 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, 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