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, toStringcompareTo, getId, getInitialDelay, getPeriod, getTargetExecutionTime, isPeriodic, setId, setTargetExecutionTimepublic 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 JavaScriptExecutionJobpage - the HtmlPage that owns the scriptCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.