pivot.wtk
Class ComponentKeyListener.Adapter

java.lang.Object
  extended by pivot.wtk.ComponentKeyListener.Adapter
All Implemented Interfaces:
ComponentKeyListener
Enclosing interface:
ComponentKeyListener

public static class ComponentKeyListener.Adapter
extends Object
implements ComponentKeyListener

Adapts the ComponentKeyListener interface.

Author:
tvolkert

Nested Class Summary
 
Nested classes/interfaces inherited from interface pivot.wtk.ComponentKeyListener
ComponentKeyListener.Adapter
 
Constructor Summary
ComponentKeyListener.Adapter()
           
 
Method Summary
 boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
          Called when a key has been pressed.
 boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
          Called when a key has been released.
 boolean keyTyped(Component component, char character)
          Called when a key has been typed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentKeyListener.Adapter

public ComponentKeyListener.Adapter()
Method Detail

keyTyped

public boolean keyTyped(Component component,
                        char character)
Description copied from interface: ComponentKeyListener
Called when a key has been typed.

Specified by:
keyTyped in interface ComponentKeyListener
Returns:
true to consume the event; false to allow it to propagate.

keyPressed

public boolean keyPressed(Component component,
                          int keyCode,
                          Keyboard.KeyLocation keyLocation)
Description copied from interface: ComponentKeyListener
Called when a key has been pressed.

Specified by:
keyPressed in interface ComponentKeyListener
Returns:
true to consume the event; false to allow it to propagate.

keyReleased

public boolean keyReleased(Component component,
                           int keyCode,
                           Keyboard.KeyLocation keyLocation)
Description copied from interface: ComponentKeyListener
Called when a key has been released.

Specified by:
keyReleased in interface ComponentKeyListener
Returns:
true to consume the event; false to allow it to propagate.