public class JavaScriptFunctionJob extends JavaScriptExecutionJob
JavaScriptJob
created from a Function
object.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
runJavaScript(HtmlPage page)
Run the JavaScript from the concrete class.
|
run, toString
compareTo, getId, getInitialDelay, getPeriod, getTargetExecutionTime, isPeriodic, setId, setTargetExecutionTime
public JavaScriptFunctionJob(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 executeprotected void runJavaScript(HtmlPage page)
runJavaScript
in class JavaScriptExecutionJob
page
- the HtmlPage
that owns the scriptCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.