Package org.eclipse.swt.events
Class KeyAdapter
java.lang.Object
org.eclipse.swt.events.KeyAdapter
- All Implemented Interfaces:
EventListener
,KeyListener
,SWTEventListener
- Direct Known Subclasses:
ContentAssistant.AutoAssistListener
This adapter class provides default implementations for the
methods described by the
KeyListener
interface.
Classes that wish to deal with KeyEvent
s can
extend this class and override only the methods which they are
interested in.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sent when a key is pressed on the system keyboard.void
Sent when a key is released on the system keyboard.
-
Constructor Details
-
KeyAdapter
public KeyAdapter()
-
-
Method Details
-
keyPressed
Sent when a key is pressed on the system keyboard. The default behavior is to do nothing.- Specified by:
keyPressed
in interfaceKeyListener
- Parameters:
e
- an event containing information about the key press
-
keyReleased
Sent when a key is released on the system keyboard. The default behavior is to do nothing.- Specified by:
keyReleased
in interfaceKeyListener
- Parameters:
e
- an event containing information about the key release
-