com.gargoylesoftware.htmlunit.javascript.background
Class JavaScriptFunctionJob

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
      extended by com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob
          extended by 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.
 
Method Summary
protected  void runJavaScript(HtmlPage page)
          Run the JavaScript from the concrete class.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob
run, toString
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
compareTo, getId, getInitialDelay, getPeriod, getTargetExecutionTime, isPeriodic, setId, setTargetExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 job
period - the amount of time to wait between executions of this job (may be null)
label - the label for the job
window - the window to which the job belongs
function - the JavaScript code to execute
Method Detail

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.