class KeyEventHandler
extends java.lang.Object
implements java.awt.event.KeyListener
Modifier and Type | Field and Description |
---|---|
private ChannelOutput |
event
The Channel action event notifications are sent down.
|
Constructor and Description |
---|
KeyEventHandler(ChannelOutput event)
constructs a new KeyEventHandler with the specified output Channel.
|
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when the Component the event handler is listening to has a key
pressed.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when the Component the event handler is listening to has a key
released.
|
void |
keyTyped(java.awt.event.KeyEvent e)
Invoked when the Component the event handler is listening to has a key
pressed and then released.
|
private ChannelOutput event
public KeyEventHandler(ChannelOutput event)
event
- The Channel to send the event notification downpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- The parameters associated with this eventpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- The parameters associated with this eventpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- The parameters associated with this event