public class EventNode extends 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
Constructor and Description |
---|
EventNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
fireEvent(String type,
Event event)
Fires a specified event on this element (IE only).
|
Object |
getOnblur()
Returns the
onblur event handler for this element. |
Object |
getOnclick()
Returns the
onclick event handler for this element. |
Object |
getOncontextmenu()
Returns the
oncontextmenu event handler for this element. |
Object |
getOndblclick()
Returns the
ondblclick event handler for this element. |
Object |
getOnerror()
Returns the
onerror event handler for this element. |
Object |
getOnfocus()
Returns the
onfocus event handler for this element. |
Object |
getOnfocusin()
Returns the
onfocusin event handler for this element. |
Object |
getOnfocusout()
Returns the
onfocusout event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOninput()
Returns the
oninput event handler for this element. |
Object |
getOnkeydown()
Returns the
onkeydown event handler for this element. |
Object |
getOnkeypress()
Returns the
onkeypress event handler for this element. |
Object |
getOnkeyup()
Returns the
onkeyup event handler for this element. |
Object |
getOnmousedown()
Returns the
onmousedown event handler for this element. |
Object |
getOnmousemove()
Returns the
onmousemove event handler for this element. |
Object |
getOnmouseout()
Returns the
onmouseout event handler for this element. |
Object |
getOnmouseover()
Returns the
onmouseover event handler for this element. |
Object |
getOnmouseup()
Returns the
onmouseup event handler for this element. |
Object |
getOnpropertychange()
Returns the
onpropertychange event handler for this element. |
Object |
getOnresize()
Returns the
onresize event handler for this element. |
void |
setOnblur(Object handler)
Sets the
onblur event handler for this element. |
void |
setOnclick(Object handler)
Sets the
onclick event handler for this element. |
void |
setOncontextmenu(Object handler)
Sets the
oncontextmenu event handler for this element. |
void |
setOndblclick(Object handler)
Sets the
ondblclick event handler for this element. |
void |
setOnerror(Object handler)
Sets the
onerror event handler for this element. |
void |
setOnfocus(Object handler)
Sets the
onfocus event handler for this element. |
void |
setOnfocusin(Object handler)
Sets the
onfocusin event handler for this element. |
void |
setOnfocusout(Object handler)
Sets the
onfocusout event handler for this element. |
void |
setOninput(Object onchange)
Sets the
oninput event handler for this element. |
void |
setOnkeydown(Object handler)
Sets the
onkeydown event handler for this element. |
void |
setOnkeypress(Object handler)
Sets the
onkeypress event handler for this element. |
void |
setOnkeyup(Object handler)
Sets the
onkeyup event handler for this element. |
void |
setOnmousedown(Object handler)
Sets the
onmousedown event handler for this element. |
void |
setOnmousemove(Object handler)
Sets the
onmousemove event handler for this element. |
void |
setOnmouseout(Object handler)
Sets the
onmouseout event handler for this element. |
void |
setOnmouseover(Object handler)
Sets the
onmouseover event handler for this element. |
void |
setOnmouseup(Object handler)
Sets the
onmouseup event handler for this element. |
void |
setOnpropertychange(Object handler)
Sets the
onpropertychange event handler for this element. |
void |
setOnresize(Object handler)
Sets the
onresize event handler for this element. |
appendChild, asJavaScriptException, cloneNode, compareDocumentPosition, contains, detachEvent, getAttributes, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, remove, removeChild, replaceChild, setNodeValue, setTextContent
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerProp
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void setOnclick(Object handler)
onclick
event handler for this element.handler
- the onclick
event handler for this elementpublic Object getOnclick()
onclick
event handler for this element.onclick
event handler for this elementpublic void setOndblclick(Object handler)
ondblclick
event handler for this element.handler
- the ondblclick
event handler for this elementpublic Object getOndblclick()
ondblclick
event handler for this element.ondblclick
event handler for this elementpublic void setOnblur(Object handler)
onblur
event handler for this element.handler
- the onblur
event handler for this elementpublic Object getOnblur()
onblur
event handler for this element.onblur
event handler for this elementpublic void setOnfocus(Object handler)
onfocus
event handler for this element.handler
- the onfocus
event handler for this elementpublic Object getOnfocus()
onfocus
event handler for this element.onfocus
event handler for this elementpublic void setOnfocusin(Object handler)
onfocusin
event handler for this element.handler
- the onfocusin
event handler for this elementpublic Object getOnfocusin()
onfocusin
event handler for this element.onfocusin
event handler for this elementpublic void setOnfocusout(Object handler)
onfocusout
event handler for this element.handler
- the onfocusout
event handler for this elementpublic Object getOnfocusout()
onfocusout
event handler for this element.onfocusout
event handler for this elementpublic void setOnkeydown(Object handler)
onkeydown
event handler for this element.handler
- the onkeydown
event handler for this elementpublic Object getOnkeydown()
onkeydown
event handler for this element.onkeydown
event handler for this elementpublic void setOnkeypress(Object handler)
onkeypress
event handler for this element.handler
- the onkeypress
event handler for this elementpublic Object getOnkeypress()
onkeypress
event handler for this element.onkeypress
event handler for this elementpublic void setOnkeyup(Object handler)
onkeyup
event handler for this element.handler
- the onkeyup
event handler for this elementpublic Object getOnkeyup()
onkeyup
event handler for this element.onkeyup
event handler for this elementpublic void setOnmousedown(Object handler)
onmousedown
event handler for this element.handler
- the onmousedown
event handler for this elementpublic Object getOnmousedown()
onmousedown
event handler for this element.onmousedown
event handler for this elementpublic void setOnmousemove(Object handler)
onmousemove
event handler for this element.handler
- the onmousemove
event handler for this elementpublic Object getOnmousemove()
onmousemove
event handler for this element.onmousemove
event handler for this elementpublic void setOnmouseout(Object handler)
onmouseout
event handler for this element.handler
- the onmouseout
event handler for this elementpublic Object getOnmouseout()
onmouseout
event handler for this element.onmouseout
event handler for this elementpublic void setOnmouseover(Object handler)
onmouseover
event handler for this element.handler
- the onmouseover
event handler for this elementpublic Object getOnmouseover()
onmouseover
event handler for this element.onmouseover
event handler for this elementpublic void setOnmouseup(Object handler)
onmouseup
event handler for this element.handler
- the onmouseup
event handler for this elementpublic Object getOnmouseup()
onmouseup
event handler for this element.onmouseup
event handler for this elementpublic void setOncontextmenu(Object handler)
oncontextmenu
event handler for this element.handler
- the oncontextmenu
event handler for this elementpublic Object getOncontextmenu()
oncontextmenu
event handler for this element.oncontextmenu
event handler for this elementpublic void setOnresize(Object handler)
onresize
event handler for this element.handler
- the onresize
event handler for this elementpublic Object getOnresize()
onresize
event handler for this element.onresize
event handler for this elementpublic void setOnpropertychange(Object handler)
onpropertychange
event handler for this element.handler
- the onpropertychange
event handler for this elementpublic Object getOnpropertychange()
onpropertychange
event handler for this element.onpropertychange
event handler for this elementpublic void setOnerror(Object handler)
onerror
event handler for this element.handler
- the onerror
event handler for this elementpublic Object getOnerror()
onerror
event handler for this element.onerror
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOninput()
oninput
event handler for this element.oninput
event handler for this elementpublic void setOninput(Object onchange)
oninput
event handler for this element.onchange
- the oninput
event handler for this elementpublic boolean 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.true
if the event fired successfully, false
if it was canceledCopyright © 2002–2018 Gargoyle Software Inc.. All rights reserved.