Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class KeyAdapter

extends Object
implements KeyListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

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.

See Also
KeyListener, KeyEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
keyPressed(KeyEvent
an event containing information about the key press
e
)

Implements org.eclipse.swt.events.KeyListener.keyPressed.

Sent when a key is pressed on the system keyboard.
public void
keyReleased(KeyEvent
an event containing information about the key release
e
)

Implements org.eclipse.swt.events.KeyListener.keyReleased.

Sent when a key is released on the system keyboard.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KeyAdapterback to summary
public KeyAdapter()

Method Detail

keyPressedback to summary
public void keyPressed(KeyEvent e)

Implements org.eclipse.swt.events.KeyListener.keyPressed.

Sent when a key is pressed on the system keyboard. The default behavior is to do nothing.

Parameters
e:KeyEvent

an event containing information about the key press

Annotations
@Override
keyReleasedback to summary
public void keyReleased(KeyEvent e)

Implements org.eclipse.swt.events.KeyListener.keyReleased.

Sent when a key is released on the system keyboard. The default behavior is to do nothing.

Parameters
e:KeyEvent

an event containing information about the key release

Annotations
@Override