org.lobobrowser.html.js
Class Executor

java.lang.Object
  extended by org.lobobrowser.html.js.Executor

public class Executor
extends java.lang.Object


Field Summary
static java.lang.String SCOPE_KEY
          A document UserData key used to map Javascript scope in the HTML document.
 
Constructor Summary
Executor()
           
 
Method Summary
static org.mozilla.javascript.Context createContext(java.net.URL codeSource, UserAgentContext ucontext)
          This method should be invoked instead of Context.enter.
static boolean executeFunction(NodeImpl element, org.mozilla.javascript.Function f, Event event)
           
static boolean executeFunction(NodeImpl element, java.lang.Object thisObject, org.mozilla.javascript.Function f, Event event)
           
static boolean executeFunction(org.mozilla.javascript.Scriptable thisScope, org.mozilla.javascript.Function f, java.net.URL codeSource, UserAgentContext ucontext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_KEY

public static final java.lang.String SCOPE_KEY
A document UserData key used to map Javascript scope in the HTML document.

See Also:
Constant Field Values
Constructor Detail

Executor

public Executor()
Method Detail

createContext

public static org.mozilla.javascript.Context createContext(java.net.URL codeSource,
                                                           UserAgentContext ucontext)
This method should be invoked instead of Context.enter.

Parameters:
codeSource -
ucontext -

executeFunction

public static boolean executeFunction(NodeImpl element,
                                      org.mozilla.javascript.Function f,
                                      Event event)

executeFunction

public static boolean executeFunction(NodeImpl element,
                                      java.lang.Object thisObject,
                                      org.mozilla.javascript.Function f,
                                      Event event)

executeFunction

public static boolean executeFunction(org.mozilla.javascript.Scriptable thisScope,
                                      org.mozilla.javascript.Function f,
                                      java.net.URL codeSource,
                                      UserAgentContext ucontext)