org.apache.pivot.wtk
Class ComponentKeyListener.Adapter
java.lang.Object
org.apache.pivot.wtk.ComponentKeyListener.Adapter
- All Implemented Interfaces:
- ComponentKeyListener
- Enclosing interface:
- ComponentKeyListener
public static class ComponentKeyListener.Adapter
- extends Object
- implements ComponentKeyListener
Component key listener adapter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentKeyListener.Adapter
public ComponentKeyListener.Adapter()
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.