net.slashie.libjcsi.wswing
Class StrokeInformer

java.lang.Object
  extended by net.slashie.libjcsi.wswing.StrokeInformer
All Implemented Interfaces:
java.awt.event.KeyListener, java.io.Serializable, java.util.EventListener

public class StrokeInformer
extends java.lang.Object
implements java.awt.event.KeyListener, java.io.Serializable

Gets keyboard input.

Author:
Santiago Zapata, Eben Howard
See Also:
Serialized Form

Constructor Summary
StrokeInformer()
           
 
Method Summary
 int getInkeyBuffer()
           
 void informKey(java.lang.Thread toWho)
           
 void keyPressed(java.awt.event.KeyEvent e)
          Captures input
 void keyReleased(java.awt.event.KeyEvent e)
          Currently does nothing.
 void keyTyped(java.awt.event.KeyEvent e)
          Currently does nothing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokeInformer

public StrokeInformer()
Method Detail

informKey

public void informKey(java.lang.Thread toWho)
Parameters:
toWho - where to add keyListener

getInkeyBuffer

public int getInkeyBuffer()
Returns:
code shows what was input

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Captures input

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e -

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Currently does nothing.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
e -

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Currently does nothing.

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