edu.unika.aifb.owltools.shell
Class ConsoleKeyListener

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by edu.unika.aifb.owltools.shell.ConsoleKeyListener
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class ConsoleKeyListener
extends java.awt.event.KeyAdapter

this is a helper class for the shell. it circumvents java's impossibility of catching each keystroke and thus offer autocompletion possibilities


Constructor Summary
ConsoleKeyListener(ShellWindow calling)
          Constructor for the listener
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent keyEvent)
          catches the key event
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleKeyListener

public ConsoleKeyListener(ShellWindow calling)
Constructor for the listener

Parameters:
calling - the Shell Window that registers this listeners
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent keyEvent)
catches the key event

Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class java.awt.event.KeyAdapter