Package org.apache.batik.bridge
Class WindowWrapper.GetURLFunctionWrapper
java.lang.Object
org.apache.batik.bridge.WindowWrapper.GetURLFunctionWrapper
- All Implemented Interfaces:
Window.URLResponseHandler
- Enclosing class:
- WindowWrapper
protected static class WindowWrapper.GetURLFunctionWrapper
extends Object
implements Window.URLResponseHandler
To wrap a function passed to getURL().
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.mozilla.javascript.Function
The function wrapper.protected RhinoInterpreter
The current interpreter.protected WindowWrapper
The WindowWrapper -
Constructor Summary
ConstructorsConstructorDescriptionGetURLFunctionWrapper
(RhinoInterpreter ri, org.mozilla.javascript.Function fct, WindowWrapper ww) Creates a wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
getURLDone
(boolean success, String mime, String content) Called before 'getURL()' returns.
-
Field Details
-
interpreter
The current interpreter. -
function
protected org.mozilla.javascript.Function functionThe function wrapper. -
windowWrapper
The WindowWrapper
-
-
Constructor Details
-
GetURLFunctionWrapper
public GetURLFunctionWrapper(RhinoInterpreter ri, org.mozilla.javascript.Function fct, WindowWrapper ww) Creates a wrapper.
-
-
Method Details
-
getURLDone
Called before 'getURL()' returns.- Specified by:
getURLDone
in interfaceWindow.URLResponseHandler
- Parameters:
success
- Whether the data was successfully retreived.mime
- The data MIME type.content
- The data.
-