com.gargoylesoftware.htmlunit.javascript.background
Class JavaScriptFunctionJob
java.lang.Object
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob
- All Implemented Interfaces:
- Comparable<JavaScriptJob>, Runnable
public class JavaScriptFunctionJob
- extends JavaScriptExecutionJob
A JavaScriptJob
created from a Function
object.
- Version:
- $Revision: 5301 $
- Author:
- Brad Clarke
Constructor Summary |
JavaScriptFunctionJob(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. |
JavaScriptFunctionJob
public JavaScriptFunctionJob(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.
- 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 belongsfunction
- the JavaScript code to execute
runJavaScript
protected void runJavaScript(HtmlPage page)
- Run the JavaScript from the concrete class.
- Specified by:
runJavaScript
in class JavaScriptExecutionJob
- Parameters:
page
- the HtmlPage
that owns the script
Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.