Class EventTargetWrapper

java.lang.Object
org.mozilla.javascript.NativeJavaObject
org.apache.batik.bridge.EventTargetWrapper
All Implemented Interfaces:
Serializable, org.mozilla.javascript.Scriptable, org.mozilla.javascript.SymbolScriptable, org.mozilla.javascript.Wrapper

class EventTargetWrapper extends org.mozilla.javascript.NativeJavaObject
A class that wraps an EventTarget instance to expose it in the Rhino engine. Then calling addEventListener with a Rhino function as parameter should redirect the call to addEventListener with a Java function object calling the Rhino function. This class also allows to pass an ECMAScript (Rhino) object as a parameter instead of a function provided the fact that this object has a handleEvent method.
Version:
$Id$
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public Object get(String name, org.mozilla.javascript.Scriptable start)
      Overriden Rhino method.
      Specified by:
      get in interface org.mozilla.javascript.Scriptable
      Overrides:
      get in class org.mozilla.javascript.NativeJavaObject
    • initMap

      public Map initMap()