fr.inria.ketuk
Class ScriptEventProcessor

java.lang.Object
  |
  +--fr.inria.ketuk.ScriptEventProcessor

public class ScriptEventProcessor
extends java.lang.Object

A processor for scripts invoked at runtime

Author:
Claude Pasquier

Constructor Summary
ScriptEventProcessor()
           
 
Method Summary
 void processEvent(javax.swing.event.DocumentEvent evt)
          Delegates the execution of the script to xbmapper when a documentEvent is received
 void processEvent(javax.swing.event.DocumentEvent evt, java.lang.String filter)
          Delegates the execution of the script to xbmapper
 void processEvent(java.util.EventObject evt)
          Delegates the execution of the script to xbmapper when an eventObject is received
 void processEvent(java.util.EventObject evt, java.lang.String filter)
          Delegates the execution of the script to xbmapper
 void processEvent(java.beans.PropertyChangeEvent evt, java.lang.String propertyName)
          Delegates the execution of the script to xbmapper
static void register(java.lang.Object beanObject, org.w3c.dom.Element scriptElement, java.util.Hashtable registeredBeans, java.lang.Object xbmapper, java.net.URL contextURL)
          Register a bean with its associated script element
static void register(java.lang.Object beanObject, org.w3c.dom.Element scriptElement, java.util.Hashtable registeredBeans, java.lang.Object xbmapper, java.net.URL contextURL, java.lang.String filter)
          Register a bean with its associated script element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptEventProcessor

public ScriptEventProcessor()
Method Detail

register

public static void register(java.lang.Object beanObject,
                            org.w3c.dom.Element scriptElement,
                            java.util.Hashtable registeredBeans,
                            java.lang.Object xbmapper,
                            java.net.URL contextURL)
Register a bean with its associated script element
Parameters:
beanObject - the source bean
scriptElement - the script associated with the bean
registeredBeans - the list of registered beans at the time of the declaration of the script
xbmapper - the xbmapper to use
contextURL - the currentUrl at the time of the declaration of the script

register

public static void register(java.lang.Object beanObject,
                            org.w3c.dom.Element scriptElement,
                            java.util.Hashtable registeredBeans,
                            java.lang.Object xbmapper,
                            java.net.URL contextURL,
                            java.lang.String filter)
Register a bean with its associated script element
Parameters:
beanObject - the source bean
scriptElement - the script associated with the bean
registeredBeans - the list of registered beans at the time of the declaration of the script
xbmapper - the xbmapper to use
contextURL - the currentUrl at the time of the declaration of the script
filter - a data used to filter the events

processEvent

public void processEvent(java.util.EventObject evt)
Delegates the execution of the script to xbmapper when an eventObject is received

processEvent

public void processEvent(javax.swing.event.DocumentEvent evt)
Delegates the execution of the script to xbmapper when a documentEvent is received

processEvent

public void processEvent(java.util.EventObject evt,
                         java.lang.String filter)
Delegates the execution of the script to xbmapper

processEvent

public void processEvent(javax.swing.event.DocumentEvent evt,
                         java.lang.String filter)
Delegates the execution of the script to xbmapper

processEvent

public void processEvent(java.beans.PropertyChangeEvent evt,
                         java.lang.String propertyName)
Delegates the execution of the script to xbmapper