Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit.javascript
Class JavaScript  view JavaScript download JavaScript.java

java.lang.Object
  extended bycom.meterware.httpunit.javascript.JavaScript

public class JavaScript
extends java.lang.Object

This class is the Rhino-compatible implementation of the JavaScript DOM objects.


Nested Class Summary
static class JavaScript.Control
           
static class JavaScript.Document
           
static class JavaScript.ElementArray
           
static class JavaScript.Form
           
static class JavaScript.HTMLElement
           
static class JavaScript.Image
           
(package private) static class JavaScript.JavaScriptEngine
           
static class JavaScript.Link
           
static class JavaScript.Location
           
static class JavaScript.Navigator
           
static class JavaScript.Option
           
static class JavaScript.Options
           
static class JavaScript.Screen
           
static class JavaScript.Style
           
static class JavaScript.Window
           
 
Field Summary
private static java.util.ArrayList _errorMessages
           
private static boolean _throwExceptionsOnError
           
private static java.lang.Object[] NO_ARGS
           
 
Constructor Summary
JavaScript()
           
 
Method Summary
(package private) static void clearErrorMessages()
           
(package private) static java.lang.String[] getErrorMessages()
           
private static void initHTMLObjects(Scriptable scope)
           
(package private) static boolean isThrowExceptionsOnError()
           
static void load(com.meterware.httpunit.WebResponse response)
          Runs the onload event for the specified web response.
(package private) static void run(com.meterware.httpunit.WebResponse response)
          Initiates JavaScript execution for the specified web response.
(package private) static void setThrowExceptionsOnError(boolean throwExceptionsOnError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ARGS

private static final java.lang.Object[] NO_ARGS

_throwExceptionsOnError

private static boolean _throwExceptionsOnError

_errorMessages

private static java.util.ArrayList _errorMessages
Constructor Detail

JavaScript

public JavaScript()
Method Detail

isThrowExceptionsOnError

static boolean isThrowExceptionsOnError()

setThrowExceptionsOnError

static void setThrowExceptionsOnError(boolean throwExceptionsOnError)

clearErrorMessages

static void clearErrorMessages()

getErrorMessages

static java.lang.String[] getErrorMessages()

run

static void run(com.meterware.httpunit.WebResponse response)
         throws java.lang.IllegalAccessException,
                java.lang.InstantiationException,
                java.lang.reflect.InvocationTargetException,
                ClassDefinitionException,
                NotAFunctionException,
                PropertyException,
                org.xml.sax.SAXException,
                JavaScriptException
Initiates JavaScript execution for the specified web response.


load

public static void load(com.meterware.httpunit.WebResponse response)
                 throws ClassDefinitionException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.lang.reflect.InvocationTargetException,
                        PropertyException,
                        JavaScriptException,
                        org.xml.sax.SAXException,
                        NotAFunctionException
Runs the onload event for the specified web response.


initHTMLObjects

private static void initHTMLObjects(Scriptable scope)
                             throws java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException,
                                    ClassDefinitionException,
                                    PropertyException