|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.KeyAdapter
public abstract class KeyAdapter
This class implements KeyListener
and implements all methods
with empty bodies. This allows a listener interested in implementing only
a subset of the KeyListener
interface to extend this class
and override only the desired methods.
KeyEvent
,
KeyListener
Constructor Summary | |
---|---|
KeyAdapter()
Do nothing default constructor for subclasses. |
Method Summary | |
---|---|
void |
keyPressed(KeyEvent event)
Implements this method in the interface with an empty body. |
void |
keyReleased(KeyEvent event)
Implements this method in the interface with an empty body. |
void |
keyTyped(KeyEvent event)
Implements this method in the interface with an empty body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyAdapter()
Method Detail |
---|
public void keyTyped(KeyEvent event)
keyTyped
in interface KeyListener
event
- the event, ignored in this implementationpublic void keyPressed(KeyEvent event)
keyPressed
in interface KeyListener
event
- the event, ignored in this implementationpublic void keyReleased(KeyEvent event)
keyReleased
in interface KeyListener
event
- the event, ignored in this implementation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |