org.apache.batik.script.rhino

Class WindowWrapper.GetURLFunctionWrapper

protected static class WindowWrapper.GetURLFunctionWrapper extends Object implements Window.URLResponseHandler

To wrap a function passed to getURL().
Field Summary
protected Functionfunction
The function wrapper.
protected RhinoInterpreterinterpreter
The current interpreter.
protected WindowWrapperwindowWrapper
The WindowWrapper
Constructor Summary
GetURLFunctionWrapper(RhinoInterpreter ri, Function fct, WindowWrapper ww)
Creates a wrapper.
Method Summary
voidgetURLDone(boolean success, String mime, String content)
Called before 'getURL()' returns.

Field Detail

function

protected Function function
The function wrapper.

interpreter

protected RhinoInterpreter interpreter
The current interpreter.

windowWrapper

protected WindowWrapper windowWrapper
The WindowWrapper

Constructor Detail

GetURLFunctionWrapper

public GetURLFunctionWrapper(RhinoInterpreter ri, Function fct, WindowWrapper ww)
Creates a wrapper.

Method Detail

getURLDone

public void getURLDone(boolean success, String mime, String content)
Called before 'getURL()' returns.

Parameters: success Whether the data was successfully retreived. mime The data MIME type. content The data.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.