com.gargoylesoftware.htmlunit.javascript.background
Class JavaScriptExecutionJob
java.lang.Object
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob
- All Implemented Interfaces:
- Comparable<JavaScriptJob>, Runnable
- Direct Known Subclasses:
- JavaScriptFunctionJob, JavaScriptStringJob
public abstract class JavaScriptExecutionJob
- extends JavaScriptJob
A JavaScript-triggered background job representing the execution of some JavaScript code.
- Version:
- $Revision: 5559 $
- Author:
- Daniel Gredler
- See Also:
MemoryLeakTest
JavaScriptExecutionJob
public JavaScriptExecutionJob(int initialDelay,
Integer period,
String label,
WebWindow window)
- Creates a new JavaScript execution job, where the JavaScript code to execute is a string.
- Parameters:
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 belongs
run
public void run()
-
toString
public String toString()
-
- Overrides:
toString in class JavaScriptJob
runJavaScript
protected abstract void runJavaScript(HtmlPage page)
- Run the JavaScript from the concrete class.
- Parameters:
page - the HtmlPage that owns the script
Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.