java.lang.Object
org.eclipse.swt.events.KeyAdapter
- All Implemented Interfaces:
- java.util.EventListener, KeyListener, org.eclipse.swt.internal.SWTEventListener
- public abstract class KeyAdapter
- extends java.lang.Object
- implements KeyListener
This adapter class provides default implementations for the
methods described by the KeyListener interface.
Classes that wish to deal with KeyEvents can
extend this class and override only the methods which they are
interested in.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyAdapter
public KeyAdapter()
keyPressed
public void keyPressed(KeyEvent e)
- Sent when a key is pressed on the system keyboard.
The default behavior is to do nothing.
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent e)
- Sent when a key is released on the system keyboard.
The default behavior is to do nothing.
- Specified by:
keyReleased in interface KeyListener