|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void keyPressed(KeyEvent e)
public void keyReleased(KeyEvent e)
public void keyTyped(KeyEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |