Package | Description |
---|---|
org.htmlunit.javascript.background |
Classes relating to background JavaScript execution, which is usually triggered via
setTimeout() or setInterval() . |
Modifier and Type | Class and Description |
---|---|
class |
BasicJavaScriptJob
A JavaScript-triggered background job managed by a
JavaScriptJobManager . |
Modifier and Type | Method and Description |
---|---|
JavaScriptJob |
BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay,
Integer period,
Runnable runnable)
Creates a new job.
|
JavaScriptJob |
BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay,
Integer period,
String label,
WebWindow window,
String script)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string.
|
JavaScriptJob |
BackgroundJavaScriptFactory.createJavascriptXMLHttpRequestJob(org.htmlunit.corejs.javascript.ContextFactory contextFactory,
org.htmlunit.corejs.javascript.ContextAction<Object> action)
Creates a new job for XMLHttpRequestProcessing.
|
JavaScriptJob |
JavaScriptJobManager.getEarliestJob()
Gets the earliest job for this manager.
|
JavaScriptJob |
JavaScriptJobManager.getEarliestJob(JavaScriptJobManager.JavaScriptJobFilter filter)
Gets the earliest job for this manager.
|
Modifier and Type | Method and Description |
---|---|
int |
JavaScriptJobManager.addJob(JavaScriptJob job,
Page page)
Adds the specified job to this job manager, assigning it an ID.
|
int |
BasicJavaScriptJob.compareTo(JavaScriptJob other) |
boolean |
JavaScriptJobManager.JavaScriptJobFilter.passes(JavaScriptJob job)
Check if the job passes the filter.
|
boolean |
JavaScriptJobManager.runSingleJob(JavaScriptJob job)
Runs the provided job if it is the right time for it.
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.