jess.awt
Class KeyListener
java.lang.Object
|
+--jess.awt.JessAWTListener
|
+--jess.awt.KeyListener
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.KeyListener
- public class KeyListener
- extends jess.awt.JessAWTListener
- implements java.awt.event.KeyListener
KeyListener
An AWT Event Adapter for Jess.
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
- Author:
- Ernest J. Friedman-Hill
Constructor Summary |
KeyListener(java.lang.String uf,
Rete engine)
Connect the Jess function specified by name to this event handler object. |
Method Summary |
void |
keyPressed(java.awt.event.KeyEvent e)
An event-handler method. |
void |
keyReleased(java.awt.event.KeyEvent e)
An event-handler method. |
void |
keyTyped(java.awt.event.KeyEvent e)
An event-handler method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyListener
public KeyListener(java.lang.String uf,
Rete engine)
throws JessException
- Connect the Jess function specified by name to this event handler object. When this
handler receives an AWT event, the named function will be invoked in the given
engine.
- Parameters:
uf
- The name of a Jess functionengine
- The Jess engine to execute the function in- Throws:
JessException
- If anything goes wrong.
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- An event-handler method. Invokes the function passed to the constructor with the
received event as the argument.
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
- Parameters:
e
- The event
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- An event-handler method. Invokes the function passed to the constructor with the
received event as the argument.
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
- Parameters:
e
- The event
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- An event-handler method. Invokes the function passed to the constructor with the
received event as the argument.
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
- Parameters:
e
- The event