Package org.apache.batik.bridge
Class EventTargetWrapper.FunctionAddProxy
- java.lang.Object
-
- org.apache.batik.bridge.EventTargetWrapper.FunctionProxy
-
- org.apache.batik.bridge.EventTargetWrapper.FunctionAddProxy
-
- All Implemented Interfaces:
org.mozilla.javascript.Callable
,org.mozilla.javascript.Function
,org.mozilla.javascript.Scriptable
- Enclosing class:
- EventTargetWrapper
static class EventTargetWrapper.FunctionAddProxy extends EventTargetWrapper.FunctionProxy
This function proxy is delegating most of the job to the underlying NativeJavaMethod object through the FunctionProxy. However to allow user to specify "Function" or objects with an "handleEvent" method as parameter of "addEventListener" it redefines the call method to deal with these cases.
-
-
Field Summary
Fields Modifier and Type Field Description protected RhinoInterpreter
interpreter
protected java.util.Map
listenerMap
-
Fields inherited from class org.apache.batik.bridge.EventTargetWrapper.FunctionProxy
delegate
-
-
Constructor Summary
Constructors Constructor Description FunctionAddProxy(RhinoInterpreter interpreter, org.mozilla.javascript.Function delegate, java.util.Map listenerMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
call(org.mozilla.javascript.Context ctx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)
-
Methods inherited from class org.apache.batik.bridge.EventTargetWrapper.FunctionProxy
construct, delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype
-
-
-
-
Field Detail
-
listenerMap
protected java.util.Map listenerMap
-
interpreter
protected RhinoInterpreter interpreter
-
-
Constructor Detail
-
FunctionAddProxy
FunctionAddProxy(RhinoInterpreter interpreter, org.mozilla.javascript.Function delegate, java.util.Map listenerMap)
-
-