|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.background.BackgroundJavaScriptFactory
public class BackgroundJavaScriptFactory
A factory for all the things we have to construct from outside of the JavaScript engine.
| Constructor Summary | |
|---|---|
protected |
BackgroundJavaScriptFactory()
The constructor. |
| Method Summary | |
|---|---|
JavaScriptJob |
createDownloadBehaviorJob(URL url,
net.sourceforge.htmlunit.corejs.javascript.Function callback,
WebClient client)
Creates a new instance. |
JavaScriptExecutor |
createJavaScriptExecutor(WebClient webClient)
Creates the JavaScriptExecutor that will be used to handle JS. |
JavaScriptJob |
createJavaScriptJob(int initialDelay,
Integer period,
Runnable runnable)
Creates a new job. |
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob |
createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Creates a new JavaScript execution job, where the JavaScript code to execute is a function. |
JavaScriptJob |
createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
String script)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string. |
JavaScriptJobManager |
createJavaScriptJobManager(WebWindow webWindow)
Creates a new JavaScriptJobManager for the given window. |
JavaScriptJob |
createJavascriptXMLHttpRequestJob(net.sourceforge.htmlunit.corejs.javascript.ContextFactory contextFactory,
net.sourceforge.htmlunit.corejs.javascript.ContextAction action)
Creates a new job for XMLHttpRequestProcessing. |
static void |
setFactory(BackgroundJavaScriptFactory factory)
Set the factory to a new one. |
static BackgroundJavaScriptFactory |
theFactory()
Returns the current factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BackgroundJavaScriptFactory()
| Method Detail |
|---|
public static BackgroundJavaScriptFactory theFactory()
public static void setFactory(BackgroundJavaScriptFactory factory)
factory - the new factory.
public JavaScriptJob createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
String script)
initialDelay - the initial amount of time to wait before executing this jobperiod - the amount of time to wait between executions of this job (may be null)label - the label for the jobwindow - the window to which the job belongsscript - the JavaScript code to execute
public com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
net.sourceforge.htmlunit.corejs.javascript.Function function)
initialDelay - the initial amount of time to wait before executing this jobperiod - the amount of time to wait between executions of this job (may be null)label - the label for the jobwindow - the window to which the job belongsfunction - the JavaScript code to execute
public JavaScriptJob createJavascriptXMLHttpRequestJob(net.sourceforge.htmlunit.corejs.javascript.ContextFactory contextFactory,
net.sourceforge.htmlunit.corejs.javascript.ContextAction action)
contextFactory - the ContextFactoryaction - the action
public JavaScriptJob createJavaScriptJob(int initialDelay,
Integer period,
Runnable runnable)
initialDelay - the initial amount of time to wait before executing this jobperiod - the amount of time to wait between executions of this job (may be null)runnable - the runnable to run
public JavaScriptJob createDownloadBehaviorJob(URL url,
net.sourceforge.htmlunit.corejs.javascript.Function callback,
WebClient client)
url - the URL to downloadcallback - the callback function to callclient - the web client this if for
public JavaScriptExecutor createJavaScriptExecutor(WebClient webClient)
JavaScriptExecutor that will be used to handle JS.
webClient - the WebClient of the executor
public JavaScriptJobManager createJavaScriptJobManager(WebWindow webWindow)
webWindow - the window the JavaScriptJobManager will work for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||