Class JavaScriptFunctionJob
- java.lang.Object
-
- org.htmlunit.javascript.background.BasicJavaScriptJob
-
- org.htmlunit.javascript.background.JavaScriptExecutionJob
-
- org.htmlunit.javascript.background.JavaScriptFunctionJob
-
- All Implemented Interfaces:
java.lang.Comparable<JavaScriptJob>,java.lang.Runnable,JavaScriptJob
class JavaScriptFunctionJob extends JavaScriptExecutionJob
AJavaScriptJobcreated from aFunctionobject.
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, java.lang.Object[] args)Creates a new JavaScript execution job, where the JavaScript code to execute is a function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrunJavaScript(HtmlPage page)Run the JavaScript from the concrete class.-
Methods inherited from class org.htmlunit.javascript.background.JavaScriptExecutionJob
run, toString
-
Methods inherited from class org.htmlunit.javascript.background.BasicJavaScriptJob
compareTo, getId, getInitialDelay, getPeriod, getTargetExecutionTime, isExecuteAsap, isPeriodic, setId, setTargetExecutionTime
-
-
-
-
Constructor Detail
-
JavaScriptFunctionJob
JavaScriptFunctionJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, java.lang.Object[] args)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 benull)label- the label for the jobwindow- the window to which the job belongsfunction- the JavaScript code to executeargs- the arguments to pass into the function call
-
-
Method Detail
-
runJavaScript
protected void runJavaScript(HtmlPage page)
Run the JavaScript from the concrete class.- Specified by:
runJavaScriptin classJavaScriptExecutionJob- Parameters:
page- theHtmlPagethat owns the script
-
-