Package org.apache.batik.bridge
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$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classThis function proxy is delegating most of the job to the underlying NativeJavaMethod object through the FunctionProxy.(package private) static classThe Java function object calling the Rhino function.(package private) static class(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected RhinoInterpreterprotected static WeakHashMapstatic final Stringstatic final StringFields inherited from class org.mozilla.javascript.NativeJavaObject
isAdapter, javaObject, members, parent, prototype, staticTypeFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionEventTargetWrapper(org.mozilla.javascript.Scriptable scope, EventTarget object, RhinoInterpreter interpreter) -
Method Summary
Methods inherited from class org.mozilla.javascript.NativeJavaObject
canConvert, coerceType, createInterfaceAdapter, delete, delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, has, hasInstance, initMembers, put, put, put, setParentScope, setPrototype, unwrap, wrap
-
Field Details
-
mapOfListenerMap
-
ADD_NAME
- See Also:
-
ADDNS_NAME
- See Also:
-
REMOVE_NAME
- See Also:
-
REMOVENS_NAME
- See Also:
-
interpreter
-
-
Constructor Details
-
EventTargetWrapper
EventTargetWrapper(org.mozilla.javascript.Scriptable scope, EventTarget object, RhinoInterpreter interpreter)
-
-
Method Details
-
get
Overriden Rhino method.- Specified by:
getin interfaceorg.mozilla.javascript.Scriptable- Overrides:
getin classorg.mozilla.javascript.NativeJavaObject
-
initMap
-