ibm.techexplorer.awt.event
Interface KeyListener

All Known Subinterfaces:
techexplorerListener
All Known Implementing Classes:
KeyAdaptor, techexplorerAdaptor

public interface KeyListener

Description

This interface defines the methods that a Java object must implement to receive notifications for key events on techexplorer instances. When a KeyEvent occurs, a techexplorer instance notifies registered listeners by invoking one of the methods defined in the KeyListener interface. The ibm.techexplorer.techexplorer Java reflection of the techexplorer plug-in provides the addKeyListener and removeKeyListener methods for managing KeyListener objects.

The ibm.techexplorer.awt.event.KeyAdaptor class can be used as it provides empty default implementations for each of the methods imposed by the KeyListener interface.

See Also:
techexplorer, AWTEvent, KeyEvent, KeyAdaptor

Method Summary
 void keyPressed(KeyEvent e)
          Invoked when a key has been pressed.
 void keyReleased(KeyEvent e)
          Invoked when a key has been released.
 void keyTyped(KeyEvent e)
          Invoked when a combination of a key press followed by a key release generated a character.
 

Method Detail

keyPressed

public void keyPressed(KeyEvent e)
Invoked when a key has been pressed.

keyReleased

public void keyReleased(KeyEvent e)
Invoked when a key has been released.

keyTyped

public void keyTyped(KeyEvent e)
Invoked when a combination of a key press followed by a key release generated a character.