|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.Node
com.gargoylesoftware.htmlunit.javascript.host.EventNode
public class EventNode
A node which supports all of the onXXX event handlers and other event-related functions. Basically contains any event-related features that both elements and the document support.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
EventNode()
|
Method Summary | |
---|---|
boolean |
jsxFunction_fireEvent(String type,
Event event)
Fires a specified event on this element (IE only). |
Object |
jsxGet_onblur()
Returns the onblur event handler for this element. |
Object |
jsxGet_onclick()
Returns the onclick event handler for this element. |
Object |
jsxGet_oncontextmenu()
Returns the oncontextmenu event handler for this element. |
Object |
jsxGet_ondblclick()
Returns the ondblclick event handler for this element. |
Object |
jsxGet_onerror()
Returns the onerror event handler for this element. |
Object |
jsxGet_onfocus()
Returns the onfocus event handler for this element. |
Object |
jsxGet_onfocusin()
Returns the onfocusin event handler for this element. |
Object |
jsxGet_onfocusout()
Returns the onfocusout event handler for this element. |
Object |
jsxGet_onkeydown()
Returns the onkeydown event handler for this element. |
Object |
jsxGet_onkeypress()
Returns the onkeypress event handler for this element. |
Object |
jsxGet_onkeyup()
Returns the onkeyup event handler for this element. |
Object |
jsxGet_onmousedown()
Returns the onmousedown event handler for this element. |
Object |
jsxGet_onmousemove()
Returns the onmousemove event handler for this element. |
Object |
jsxGet_onmouseout()
Returns the onmouseout event handler for this element. |
Object |
jsxGet_onmouseover()
Returns the onmouseover event handler for this element. |
Object |
jsxGet_onmouseup()
Returns the onmouseup event handler for this element. |
Object |
jsxGet_onpropertychange()
Returns the onpropertychange event handler for this element. |
Object |
jsxGet_onresize()
Returns the onresize event handler for this element. |
void |
jsxSet_onblur(Object handler)
Sets the onblur event handler for this element. |
void |
jsxSet_onclick(Object handler)
Sets the onclick event handler for this element. |
void |
jsxSet_oncontextmenu(Object handler)
Sets the oncontextmenu event handler for this element. |
void |
jsxSet_ondblclick(Object handler)
Sets the ondblclick event handler for this element. |
void |
jsxSet_onerror(Object handler)
Sets the onerror event handler for this element. |
void |
jsxSet_onfocus(Object handler)
Sets the onfocus event handler for this element. |
void |
jsxSet_onfocusin(Object handler)
Sets the onfocusin event handler for this element. |
void |
jsxSet_onfocusout(Object handler)
Sets the onfocusout event handler for this element. |
void |
jsxSet_onkeydown(Object handler)
Sets the onkeydown event handler for this element. |
void |
jsxSet_onkeypress(Object handler)
Sets the onkeypress event handler for this element. |
void |
jsxSet_onkeyup(Object handler)
Sets the onkeyup event handler for this element. |
void |
jsxSet_onmousedown(Object handler)
Sets the onmousedown event handler for this element. |
void |
jsxSet_onmousemove(Object handler)
Sets the onmousemove event handler for this element. |
void |
jsxSet_onmouseout(Object handler)
Sets the onmouseout event handler for this element. |
void |
jsxSet_onmouseover(Object handler)
Sets the onmouseover event handler for this element. |
void |
jsxSet_onmouseup(Object handler)
Sets the onmouseup event handler for this element. |
void |
jsxSet_onpropertychange(Object handler)
Sets the onpropertychange event handler for this element. |
void |
jsxSet_onresize(Object handler)
Sets the onresize event handler for this element. |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement |
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public EventNode()
Method Detail |
---|
public void jsxSet_onclick(Object handler)
handler
- the onclick event handler for this elementpublic Object jsxGet_onclick()
public void jsxSet_ondblclick(Object handler)
handler
- the ondblclick event handler for this elementpublic Object jsxGet_ondblclick()
public void jsxSet_onblur(Object handler)
handler
- the onblur event handler for this elementpublic Object jsxGet_onblur()
public void jsxSet_onfocus(Object handler)
handler
- the onfocus event handler for this elementpublic Object jsxGet_onfocus()
public void jsxSet_onfocusin(Object handler)
handler
- the onfocusin event handler for this elementpublic Object jsxGet_onfocusin()
public void jsxSet_onfocusout(Object handler)
handler
- the onfocusout event handler for this elementpublic Object jsxGet_onfocusout()
public void jsxSet_onkeydown(Object handler)
handler
- the onkeydown event handler for this elementpublic Object jsxGet_onkeydown()
public void jsxSet_onkeypress(Object handler)
handler
- the onkeypress event handler for this elementpublic Object jsxGet_onkeypress()
public void jsxSet_onkeyup(Object handler)
handler
- the onkeyup event handler for this elementpublic Object jsxGet_onkeyup()
public void jsxSet_onmousedown(Object handler)
handler
- the onmousedown event handler for this elementpublic Object jsxGet_onmousedown()
public void jsxSet_onmousemove(Object handler)
handler
- the onmousemove event handler for this elementpublic Object jsxGet_onmousemove()
public void jsxSet_onmouseout(Object handler)
handler
- the onmouseout event handler for this elementpublic Object jsxGet_onmouseout()
public void jsxSet_onmouseover(Object handler)
handler
- the onmouseover event handler for this elementpublic Object jsxGet_onmouseover()
public void jsxSet_onmouseup(Object handler)
handler
- the onmouseup event handler for this elementpublic Object jsxGet_onmouseup()
public void jsxSet_oncontextmenu(Object handler)
handler
- the oncontextmenu event handler for this elementpublic Object jsxGet_oncontextmenu()
public void jsxSet_onresize(Object handler)
handler
- the onresize event handler for this elementpublic Object jsxGet_onresize()
public void jsxSet_onpropertychange(Object handler)
handler
- the onpropertychange event handler for this elementpublic Object jsxGet_onpropertychange()
public void jsxSet_onerror(Object handler)
handler
- the onerror event handler for this elementpublic Object jsxGet_onerror()
public boolean jsxFunction_fireEvent(String type, Event event)
type
- specifies the name of the event to fire.event
- specifies the event object from which to obtain event object properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |