org.lobobrowser.html.js

Class Executor


public class Executor
extends java.lang.Object

Field Summary

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

Method Summary

static Context
createContext(java.net.URL codeSource, UserAgentContext ucontext)
This method should be invoked instead of Context.enter.
static boolean
executeFunction(Scriptable thisScope, Function f, java.net.URL codeSource, UserAgentContext ucontext)
static boolean
executeFunction(NodeImpl element, Function f, Event event)
static boolean
executeFunction(NodeImpl element, Object thisObject, Function f, Event event)

Field Details

SCOPE_KEY

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

Method Details

createContext

public static 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(Scriptable thisScope,
                                      Function f,
                                      java.net.URL codeSource,
                                      UserAgentContext ucontext)

executeFunction

public static boolean executeFunction(NodeImpl element,
                                      Function f,
                                      Event event)

executeFunction

public static boolean executeFunction(NodeImpl element,
                                      Object thisObject,
                                      Function f,
                                      Event event)