charva.awt.event
Interface KeyListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractButton, DateEntryField, KeyAdapter

public interface KeyListener
extends EventListener

The listener interface for receiving KeyEvents.


Method Summary
 void keyPressed(KeyEvent ke_)
          KEY_PRESSED events are fired when any key (including a function key and cursor key) is pressed while the component has keyboard input focus.
 void keyReleased(KeyEvent ke_)
          This method is never called in CHARVA, but is present for compatibility with javax.swing.
 void keyTyped(KeyEvent ke_)
          KEY_TYPED events are fired when a key representing a valid text character (not a function key or cursor key) is pressed.
 

Method Detail

keyPressed

public void keyPressed(KeyEvent ke_)
KEY_PRESSED events are fired when any key (including a function key and cursor key) is pressed while the component has keyboard input focus. KeyEvent.getKeyCode() can be used to find out which key was pressed.


keyTyped

public void keyTyped(KeyEvent ke_)
KEY_TYPED events are fired when a key representing a valid text character (not a function key or cursor key) is pressed. KeyEvent.getKeyChar() can be used to get the ASCII code of the key that was pressed.


keyReleased

public void keyReleased(KeyEvent ke_)
This method is never called in CHARVA, but is present for compatibility with javax.swing.