com.gargoylesoftware.htmlunit.javascript.host
Class EventNode

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Node
              extended by com.gargoylesoftware.htmlunit.javascript.host.EventNode
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable
Direct Known Subclasses:
Document, Element

public class EventNode
extends Node

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.

Version:
$Revision: 5301 $
Author:
Daniel Gredler, Ahmed Ashour
See Also:
Serialized Form

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.host.Node
executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getJavaScriptNode, getParent, hasEventHandlers, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_compareDocumentPosition, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_normalize, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_localName, jsxGet_namespaceURI, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_ownerDocument, jsxGet_parentNode, jsxGet_prefix, jsxGet_previousSibling, jsxGet_textContent, jsxGet_xml, jsxSet_nodeValue, jsxSet_textContent, setDomNode, setEventHandler, setEventHandlerProp
 
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

EventNode

public EventNode()
Method Detail

jsxSet_onclick

public void jsxSet_onclick(Object handler)
Sets the onclick event handler for this element.

Parameters:
handler - the onclick event handler for this element

jsxGet_onclick

public Object jsxGet_onclick()
Returns the onclick event handler for this element.

Returns:
the onclick event handler for this element

jsxSet_ondblclick

public void jsxSet_ondblclick(Object handler)
Sets the ondblclick event handler for this element.

Parameters:
handler - the ondblclick event handler for this element

jsxGet_ondblclick

public Object jsxGet_ondblclick()
Returns the ondblclick event handler for this element.

Returns:
the ondblclick event handler for this element

jsxSet_onblur

public void jsxSet_onblur(Object handler)
Sets the onblur event handler for this element.

Parameters:
handler - the onblur event handler for this element

jsxGet_onblur

public Object jsxGet_onblur()
Returns the onblur event handler for this element.

Returns:
the onblur event handler for this element

jsxSet_onfocus

public void jsxSet_onfocus(Object handler)
Sets the onfocus event handler for this element.

Parameters:
handler - the onfocus event handler for this element

jsxGet_onfocus

public Object jsxGet_onfocus()
Returns the onfocus event handler for this element.

Returns:
the onfocus event handler for this element

jsxSet_onfocusin

public void jsxSet_onfocusin(Object handler)
Sets the onfocusin event handler for this element.

Parameters:
handler - the onfocusin event handler for this element

jsxGet_onfocusin

public Object jsxGet_onfocusin()
Returns the onfocusin event handler for this element.

Returns:
the onfocusin event handler for this element

jsxSet_onfocusout

public void jsxSet_onfocusout(Object handler)
Sets the onfocusout event handler for this element.

Parameters:
handler - the onfocusout event handler for this element

jsxGet_onfocusout

public Object jsxGet_onfocusout()
Returns the onfocusout event handler for this element.

Returns:
the onfocusout event handler for this element

jsxSet_onkeydown

public void jsxSet_onkeydown(Object handler)
Sets the onkeydown event handler for this element.

Parameters:
handler - the onkeydown event handler for this element

jsxGet_onkeydown

public Object jsxGet_onkeydown()
Returns the onkeydown event handler for this element.

Returns:
the onkeydown event handler for this element

jsxSet_onkeypress

public void jsxSet_onkeypress(Object handler)
Sets the onkeypress event handler for this element.

Parameters:
handler - the onkeypress event handler for this element

jsxGet_onkeypress

public Object jsxGet_onkeypress()
Returns the onkeypress event handler for this element.

Returns:
the onkeypress event handler for this element

jsxSet_onkeyup

public void jsxSet_onkeyup(Object handler)
Sets the onkeyup event handler for this element.

Parameters:
handler - the onkeyup event handler for this element

jsxGet_onkeyup

public Object jsxGet_onkeyup()
Returns the onkeyup event handler for this element.

Returns:
the onkeyup event handler for this element

jsxSet_onmousedown

public void jsxSet_onmousedown(Object handler)
Sets the onmousedown event handler for this element.

Parameters:
handler - the onmousedown event handler for this element

jsxGet_onmousedown

public Object jsxGet_onmousedown()
Returns the onmousedown event handler for this element.

Returns:
the onmousedown event handler for this element

jsxSet_onmousemove

public void jsxSet_onmousemove(Object handler)
Sets the onmousemove event handler for this element.

Parameters:
handler - the onmousemove event handler for this element

jsxGet_onmousemove

public Object jsxGet_onmousemove()
Returns the onmousemove event handler for this element.

Returns:
the onmousemove event handler for this element

jsxSet_onmouseout

public void jsxSet_onmouseout(Object handler)
Sets the onmouseout event handler for this element.

Parameters:
handler - the onmouseout event handler for this element

jsxGet_onmouseout

public Object jsxGet_onmouseout()
Returns the onmouseout event handler for this element.

Returns:
the onmouseout event handler for this element

jsxSet_onmouseover

public void jsxSet_onmouseover(Object handler)
Sets the onmouseover event handler for this element.

Parameters:
handler - the onmouseover event handler for this element

jsxGet_onmouseover

public Object jsxGet_onmouseover()
Returns the onmouseover event handler for this element.

Returns:
the onmouseover event handler for this element

jsxSet_onmouseup

public void jsxSet_onmouseup(Object handler)
Sets the onmouseup event handler for this element.

Parameters:
handler - the onmouseup event handler for this element

jsxGet_onmouseup

public Object jsxGet_onmouseup()
Returns the onmouseup event handler for this element.

Returns:
the onmouseup event handler for this element

jsxSet_oncontextmenu

public void jsxSet_oncontextmenu(Object handler)
Sets the oncontextmenu event handler for this element.

Parameters:
handler - the oncontextmenu event handler for this element

jsxGet_oncontextmenu

public Object jsxGet_oncontextmenu()
Returns the oncontextmenu event handler for this element.

Returns:
the oncontextmenu event handler for this element

jsxSet_onresize

public void jsxSet_onresize(Object handler)
Sets the onresize event handler for this element.

Parameters:
handler - the onresize event handler for this element

jsxGet_onresize

public Object jsxGet_onresize()
Returns the onresize event handler for this element.

Returns:
the onresize event handler for this element

jsxSet_onpropertychange

public void jsxSet_onpropertychange(Object handler)
Sets the onpropertychange event handler for this element.

Parameters:
handler - the onpropertychange event handler for this element

jsxGet_onpropertychange

public Object jsxGet_onpropertychange()
Returns the onpropertychange event handler for this element.

Returns:
the onpropertychange event handler for this element

jsxSet_onerror

public void jsxSet_onerror(Object handler)
Sets the onerror event handler for this element.

Parameters:
handler - the onerror event handler for this element

jsxGet_onerror

public Object jsxGet_onerror()
Returns the onerror event handler for this element.

Returns:
the onerror event handler for this element

jsxFunction_fireEvent

public boolean jsxFunction_fireEvent(String type,
                                     Event event)
Fires a specified event on this element (IE only). See the MSDN documentation for more information.

Parameters:
type - specifies the name of the event to fire.
event - specifies the event object from which to obtain event object properties.
Returns:
true if the event fired successfully, false if it was canceled


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.