ibm.techexplorer.awt.event
Class KeyAdaptor

java.lang.Object
  |
  +--ibm.techexplorer.awt.event.KeyAdaptor

public abstract class KeyAdaptor
extends java.lang.Object
implements KeyListener

Description

The KeyAdaptor is a keyboard listener with default implementations for the methods imposed by the ibm.techexplorer.awt.event.KeyListener interface. The methods in this class are empty; this class is provided as a convenience for ease in creating listeners by extending this class and overriding only the methods of interest. Adaptor classes are frequently implemented as inner classes.

See Also:
AWTEvent, KeyEvent, KeyListener

Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyAdaptor

public KeyAdaptor()
Method Detail

keyPressed

public void keyPressed(KeyEvent e)
Invoked when a key has been pressed.
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Invoked when a key has been released.
Specified by:
keyReleased in interface KeyListener

keyTyped

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