vxmlsurfer
Class KeyEventListener

java.lang.Object
  extended by vxmlsurfer.KeyEventListener
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

 class KeyEventListener
extends java.lang.Object
implements java.awt.event.KeyListener

this class handles all the keyboard events

Author:
Eugene Borodin

Field Summary
(package private)  boolean comboKey
           
(package private)  javax.swing.JTextArea command
           
(package private)  boolean ctrlPressed
           
(package private)  int eventNumber
           
(package private)  boolean insertPressed
           
 
Constructor Summary
KeyEventListener(CustomField command)
          Constructor
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent arg0)
          Event handler for the Key Pressed event posts relevant commands to the interpreter
 void keyReleased(java.awt.event.KeyEvent arg0)
          Key released event handler
 void keyTyped(java.awt.event.KeyEvent arg0)
          Inherited abstract method to be implemented This event handler is not used though
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

javax.swing.JTextArea command

insertPressed

boolean insertPressed

ctrlPressed

boolean ctrlPressed

comboKey

boolean comboKey

eventNumber

int eventNumber
Constructor Detail

KeyEventListener

KeyEventListener(CustomField command)
Constructor

Parameters:
inputQ - Queue holding the commands to be executed by the interpreter
command - input box
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent arg0)
Event handler for the Key Pressed event posts relevant commands to the interpreter

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
arg0 - keyEvent argument

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Key released event handler

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
arg0 - is the KeyEvent

keyTyped

public void keyTyped(java.awt.event.KeyEvent arg0)
Inherited abstract method to be implemented This event handler is not used though

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
arg0 - KeyEvent