vfstagecontroller
Class SerialConnection.KeyHandler

java.lang.Object
  |
  +--java.awt.event.KeyAdapter
        |
        +--vfstagecontroller.SerialConnection.KeyHandler
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener
Enclosing class:
SerialConnection

class SerialConnection.KeyHandler
extends java.awt.event.KeyAdapter

A class to handle KeyEvents generated by the messageAreaOut. When a KeyEvent occurs the char that is generated by the event is read, converted to an int and writen to the OutputStream for the port.


Field Summary
(package private)  java.io.OutputStream os
           
 
Constructor Summary
SerialConnection.KeyHandler(java.io.OutputStream os)
          Creates the KeyHandler.
 
Method Summary
 void keyTyped(java.awt.event.KeyEvent evt)
          Handles the KeyEvent.
 
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

os

java.io.OutputStream os
Constructor Detail

SerialConnection.KeyHandler

public SerialConnection.KeyHandler(java.io.OutputStream os)
Creates the KeyHandler.
Parameters:
os - The OutputStream for the port.
Method Detail

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Handles the KeyEvent. Gets the char generated by the KeyEvent, converts it to an int, writes it to the OutputStream for the port.
Overrides:
keyTyped in class java.awt.event.KeyAdapter