|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.BaseFunction
com.gargoylesoftware.htmlunit.javascript.host.EventHandler
public class EventHandler
Allows to wrap event handler code as Function object.
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
EventHandler(DomNode node,
java.lang.String eventName,
java.lang.String jsSnippet)
Builds a function that will execute the javascript code provided |
Method Summary | |
---|---|
java.lang.Object |
call(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args)
|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
java.lang.Object |
getDefaultValue(java.lang.Class typeHint)
|
Methods inherited from class org.mozilla.javascript.BaseFunction |
---|
construct, createObject, execIdCall, getArity, getClassName, getFunctionName, getLength, hasInstance, setImmunePrototypeProperty |
Methods inherited from class org.mozilla.javascript.IdScriptableObject |
---|
activatePrototypeMap, delete, exportAsJSClass, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributes |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasProperty, hasProperty, isConst, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, getIds, getParentScope, getPrototype, has, has, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public EventHandler(DomNode node, java.lang.String eventName, java.lang.String jsSnippet)
node
- the element for which the event is buildeventName
- the event for which this handler is createdjsSnippet
- the javascript codeMethod Detail |
---|
public java.lang.Object call(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args) throws org.mozilla.javascript.JavaScriptException
call
in interface org.mozilla.javascript.Callable
call
in interface org.mozilla.javascript.Function
call
in class org.mozilla.javascript.BaseFunction
org.mozilla.javascript.JavaScriptException
public java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.IdScriptableObject
public java.lang.Object getDefaultValue(java.lang.Class typeHint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
typeHint
- the type hint
ScriptableObject.getDefaultValue(java.lang.Class)
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |