adams.gui.tools
Class RConsoleKeyListener

java.lang.Object
  extended by adams.gui.tools.RConsoleKeyListener
All Implemented Interfaces:
KeyListener, EventListener

public class RConsoleKeyListener
extends Object
implements KeyListener

Listens for the Return key being pressed and therefore a new line of input.

Version:
$Revision$
Author:
rsmith

Constructor Summary
RConsoleKeyListener()
           
 
Method Summary
 void keyPressed(KeyEvent e)
          Called when a key is pressed.
 void keyReleased(KeyEvent e)
          Called when a key is released.
 void keyTyped(KeyEvent e)
          This is called when a key is typed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RConsoleKeyListener

public RConsoleKeyListener()
Method Detail

keyTyped

public void keyTyped(KeyEvent e)
This is called when a key is typed. When the Return key is pressed it notifies the RConsolePanel thread to wake up and read the new input.

Specified by:
keyTyped in interface KeyListener
Parameters:
e - details about the key event

keyPressed

public void keyPressed(KeyEvent e)
Called when a key is pressed.

Specified by:
keyPressed in interface KeyListener
Parameters:
e - details about the key event

keyReleased

public void keyReleased(KeyEvent e)
Called when a key is released.

Specified by:
keyReleased in interface KeyListener
Parameters:
e - details about the key event


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.