Class JavaScriptExecutionJob

    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
        Logging support.
      • label_

        private final java.lang.String label_
        The label for this job.
      • window_

        private final java.lang.ref.WeakReference<WebWindow> window_
        The window to which this job belongs (weakly referenced, so as not to leak memory).
    • Constructor Detail

      • JavaScriptExecutionJob

        JavaScriptExecutionJob​(int initialDelay,
                               java.lang.Integer period,
                               java.lang.String label,
                               WebWindow window)
        Creates a new JavaScript execution job, where the JavaScript code to execute is a string.
        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
    • Method Detail

      • run

        public void run()
      • runJavaScript

        protected abstract void runJavaScript​(HtmlPage page)
        Run the JavaScript from the concrete class.
        Parameters:
        page - the HtmlPage that owns the script