jess.awt
Class ComponentListener

java.lang.Object
  |
  +--jess.awt.JessAWTListener
        |
        +--jess.awt.ComponentListener
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class ComponentListener
extends jess.awt.JessAWTListener
implements java.awt.event.ComponentListener

ComponentListener An AWT Event Adapter for Jess.

(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories

Author:
Ernest J. Friedman-Hill

Constructor Summary
ComponentListener(java.lang.String uf, Rete engine)
          Connect the Jess function specified by name to this event handler object.
 
Method Summary
 void componentHidden(java.awt.event.ComponentEvent e)
          An event-handler method.
 void componentMoved(java.awt.event.ComponentEvent e)
          An event-handler method.
 void componentResized(java.awt.event.ComponentEvent e)
          An event-handler method.
 void componentShown(java.awt.event.ComponentEvent e)
          An event-handler method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentListener

public ComponentListener(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 function
engine - The Jess engine to execute the function in
Throws:
JessException - If anything goes wrong.
Method Detail

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
An event-handler method. Invokes the function passed to the constructor with the received event as the argument.
Specified by:
componentHidden in interface java.awt.event.ComponentListener
Parameters:
e - The event

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
An event-handler method. Invokes the function passed to the constructor with the received event as the argument.
Specified by:
componentMoved in interface java.awt.event.ComponentListener
Parameters:
e - The event

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
An event-handler method. Invokes the function passed to the constructor with the received event as the argument.
Specified by:
componentResized in interface java.awt.event.ComponentListener
Parameters:
e - The event

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
An event-handler method. Invokes the function passed to the constructor with the received event as the argument.
Specified by:
componentShown in interface java.awt.event.ComponentListener
Parameters:
e - The event

© 1997 E.J. Friedman-Hill and Sandia Corporation