Java Doc for Node.java in  » Testing » htmlunit » com » gargoylesoftware » htmlunit » javascript » host » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » htmlunit » com.gargoylesoftware.htmlunit.javascript.host 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
   com.gargoylesoftware.htmlunit.javascript.host.Node

All known Subclasses:   com.gargoylesoftware.htmlunit.javascript.host.CharacterDataImpl,  com.gargoylesoftware.htmlunit.javascript.host.Document,  com.gargoylesoftware.htmlunit.javascript.host.Element,  com.gargoylesoftware.htmlunit.javascript.host.DocumentFragment,  com.gargoylesoftware.htmlunit.javascript.host.XMLElement,
Node
public class Node extends SimpleScriptable (Code)
The javascript object "Node" which is the base class for all DOM objects. This will typically wrap an instance of DomNode .
version:
   $Revision: 2157 $
author:
   Mike Bowler
author:
   David K. Taylor
author:
   Barnaby Court
author:
   Christian Sell
author:
   George Murnock
author:
   Chris Erskine
author:
   Bruce Faulkner
author:
   Ahmed Ashour


Field Summary
final public static  shortATTRIBUTE_NODE
    
final public static  shortCDATA_SECTION_NODE
    
final public static  shortCOMMENT_NODE
    
final public static  shortDOCUMENT_FRAGMENT_NODE
    
final public static  shortDOCUMENT_NODE
    
final public static  shortDOCUMENT_TYPE_NODE
    
final public static  shortELEMENT_NODE
    
final public static  shortENTITY_NODE
    
final public static  shortENTITY_REFERENCE_NODE
    
final public static  shortNOTATION_NODE
    
final public static  shortPROCESSING_INSTRUCTION_NODE
    
final public static  shortTEXT_NODE
    

Constructor Summary
public  Node()
     Create an instance.

Method Summary
public  ScriptResultexecuteEvent(Event event)
    
public  ScriptResultfireEvent(Event event)
    
public  FunctiongetEventHandler(String eventName)
    
protected  ObjectgetEventHandlerProp(String eventName)
    
protected  ObjectgetJavaScriptNode(DomNode domNode)
    
public  voidjsxFunction_addEventListener(String type, Function listener, boolean useCapture)
     Allows the registration of event listeners on the event target.
public  ObjectjsxFunction_appendChild(Object childObject)
    
public  booleanjsxFunction_attachEvent(String type, Function listener)
     Allows the registration of event listeners on the event target.
public  ObjectjsxFunction_cloneNode(boolean deep)
     Duplicate an XML node
Parameters:
  deep - If true, recursively clone all descendants.
public  voidjsxFunction_detachEvent(String type, Function listener)
     Allows the removal of event listeners on the event target.
public  booleanjsxFunction_hasChildNodes()
     Returns whether this node has any children.
public  ObjectjsxFunction_insertBefore(Object newChildObject, Object refChildObject)
     Add a DOM node as a child to this node before the referenced node.
public  booleanjsxFunction_isSameNode(Object other)
     This method provides a way to determine whether two Node references returned by the implementation reference the same object. When two Node references are references to the same object, even if through a proxy, the references may be used completely interchangeably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.
Parameters:
  other - The node to test against.
public  ObjectjsxFunction_removeChild(Object childObject)
    
public  voidjsxFunction_removeEventListener(String type, Function listener, boolean useCapture)
     Allows the removal of event listeners on the event target.
public  ObjectjsxFunction_replaceChild(Object newChildObject, Object oldChildObject)
     Replaces a child DOM node with another DOM node.
public  ObjectjsxGet_childNodes()
     Returns the child nodes of the current element.
public  ObjectjsxGet_firstChild()
     Get the JavaScript property "firstChild" for the node that contains the current node.
public  ObjectjsxGet_lastChild()
     Get the JavaScript property "lastChild" for the node that contains the current node.
public  ObjectjsxGet_nextSibling()
     Get the JavaScript property "nextSibling" for the node that contains the current node.
public  StringjsxGet_nodeName()
     Get the JavaScript property "nodeName" for the current node.
public  shortjsxGet_nodeType()
     Get the JavaScript property "nodeType" for the current node.
public  StringjsxGet_nodeValue()
     Get the JavaScript property "nodeValue" for the current node.
public  ObjectjsxGet_parentNode()
     Get the JavaScript property "parentNode" for the node that contains the current node.
public  ObjectjsxGet_previousSibling()
     Get the JavaScript property "previousSibling" for the node that contains the current node.
public  voidjsxSet_nodeValue(String newValue)
     Set the JavaScript property "nodeValue" for the current node.
public  voidsetEventHandler(String eventName, Function eventHandler)
    
protected  voidsetEventHandlerProp(String eventName, Object value)
    

Field Detail
ATTRIBUTE_NODE
final public static short ATTRIBUTE_NODE(Code)

See Also:    org.w3c.dom.Node.ATTRIBUTE_NODE
See Also:   .



CDATA_SECTION_NODE
final public static short CDATA_SECTION_NODE(Code)

See Also:    org.w3c.dom.Node.CDATA_SECTION_NODE
See Also:   .



COMMENT_NODE
final public static short COMMENT_NODE(Code)

See Also:    org.w3c.dom.Node.COMMENT_NODE
See Also:   .



DOCUMENT_FRAGMENT_NODE
final public static short DOCUMENT_FRAGMENT_NODE(Code)

See Also:    org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE
See Also:   .



DOCUMENT_NODE
final public static short DOCUMENT_NODE(Code)

See Also:    org.w3c.dom.Node.DOCUMENT_NODE
See Also:   .



DOCUMENT_TYPE_NODE
final public static short DOCUMENT_TYPE_NODE(Code)

See Also:    org.w3c.dom.Node.DOCUMENT_TYPE_NODE
See Also:   .



ELEMENT_NODE
final public static short ELEMENT_NODE(Code)

See Also:    org.w3c.dom.Node.ELEMENT_NODE
See Also:   .



ENTITY_NODE
final public static short ENTITY_NODE(Code)

See Also:    org.w3c.dom.Node.ENTITY_NODE
See Also:   .



ENTITY_REFERENCE_NODE
final public static short ENTITY_REFERENCE_NODE(Code)

See Also:    org.w3c.dom.Node.ENTITY_REFERENCE_NODE
See Also:   .



NOTATION_NODE
final public static short NOTATION_NODE(Code)

See Also:    org.w3c.dom.Node.NOTATION_NODE
See Also:   .



PROCESSING_INSTRUCTION_NODE
final public static short PROCESSING_INSTRUCTION_NODE(Code)

See Also:    org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE
See Also:   .



TEXT_NODE
final public static short TEXT_NODE(Code)

See Also:    org.w3c.dom.Node.TEXT_NODE
See Also:   .




Constructor Detail
Node
public Node()(Code)
Create an instance.




Method Detail
executeEvent
public ScriptResult executeEvent(Event event)(Code)
Execute the event on this object only (needed for instance for onload on (i)frame tags)
Parameters:
  event - the event the result



fireEvent
public ScriptResult fireEvent(Event event)(Code)
Fires the event on the node with capturing and bubbling phase
Parameters:
  event - the event the result



getEventHandler
public Function getEventHandler(String eventName)(Code)
Gets an event handler
Parameters:
  eventName - the event name (ex: "onclick") the handler function, null if the property is null or not a function



getEventHandlerProp
protected Object getEventHandlerProp(String eventName)(Code)
Gets the property defined as event handler (not necessary a Function if something else has been set)
Parameters:
  eventName - the event name (like "onclick") the property



getJavaScriptNode
protected Object getJavaScriptNode(DomNode domNode)(Code)
Get the JavaScript node for a given DomNode
Parameters:
  domNode - The DomNode The JavaScript node or null if the DomNode was null.



jsxFunction_addEventListener
public void jsxFunction_addEventListener(String type, Function listener, boolean useCapture)(Code)
Allows the registration of event listeners on the event target.
Parameters:
  type - the event type to listen for (like "click")
Parameters:
  listener - the event listener
Parameters:
  useCapture - If true, indicates that the user wishes to initiate capture
See Also:    Mozilla documentation



jsxFunction_appendChild
public Object jsxFunction_appendChild(Object childObject)(Code)
Add a DOM node to the node
Parameters:
  childObject - The node to add to this node The newly added child node.



jsxFunction_attachEvent
public boolean jsxFunction_attachEvent(String type, Function listener)(Code)
Allows the registration of event listeners on the event target.
Parameters:
  type - the event type to listen for (like "onclick")
Parameters:
  listener - the event listener
See Also:    * MSDN documentation true if the listener has been added



jsxFunction_cloneNode
public Object jsxFunction_cloneNode(boolean deep)(Code)
Duplicate an XML node
Parameters:
  deep - If true, recursively clone all descendants. Otherwise,just clone this node. The newly cloned node.



jsxFunction_detachEvent
public void jsxFunction_detachEvent(String type, Function listener)(Code)
Allows the removal of event listeners on the event target.
Parameters:
  type - the event type to listen for (like "onclick")
Parameters:
  listener - the event listener
See Also:    * MSDN documentation



jsxFunction_hasChildNodes
public boolean jsxFunction_hasChildNodes()(Code)
Returns whether this node has any children. boolean true if this node has any children, false otherwise.



jsxFunction_insertBefore
public Object jsxFunction_insertBefore(Object newChildObject, Object refChildObject)(Code)
Add a DOM node as a child to this node before the referenced node. If the referenced node is null, append to the end.
Parameters:
  newChildObject - The node to add to this node
Parameters:
  refChildObject - The node before which to add the new child The newly added child node.



jsxFunction_isSameNode
public boolean jsxFunction_isSameNode(Object other)(Code)
This method provides a way to determine whether two Node references returned by the implementation reference the same object. When two Node references are references to the same object, even if through a proxy, the references may be used completely interchangeably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.
Parameters:
  other - The node to test against. whether this node is the same node as the given one.



jsxFunction_removeChild
public Object jsxFunction_removeChild(Object childObject)(Code)
Remove a DOM node from this node
Parameters:
  childObject - The node to remove from this node The removed child node.



jsxFunction_removeEventListener
public void jsxFunction_removeEventListener(String type, Function listener, boolean useCapture)(Code)
Allows the removal of event listeners on the event target.
Parameters:
  type - the event type to listen for (like "click")
Parameters:
  listener - the event listener
Parameters:
  useCapture - If true, indicates that the user wishes to initiate capture (not yet implemented)
See Also:    Mozilla documentation



jsxFunction_replaceChild
public Object jsxFunction_replaceChild(Object newChildObject, Object oldChildObject)(Code)
Replaces a child DOM node with another DOM node.
Parameters:
  newChildObject - the node to add as a child of this node
Parameters:
  oldChildObject - the node to remove as a child of this node the removed child node



jsxGet_childNodes
public Object jsxGet_childNodes()(Code)
Returns the child nodes of the current element. The child nodes of the current element.



jsxGet_firstChild
public Object jsxGet_firstChild()(Code)
Get the JavaScript property "firstChild" for the node that contains the current node. The first child node or null if the current node hasno children.



jsxGet_lastChild
public Object jsxGet_lastChild()(Code)
Get the JavaScript property "lastChild" for the node that contains the current node. The last child node or null if the current node hasno children.



jsxGet_nextSibling
public Object jsxGet_nextSibling()(Code)
Get the JavaScript property "nextSibling" for the node that contains the current node. The next sibling node or null if the current node hasno next sibling.



jsxGet_nodeName
public String jsxGet_nodeName()(Code)
Get the JavaScript property "nodeName" for the current node. The node name



jsxGet_nodeType
public short jsxGet_nodeType()(Code)
Get the JavaScript property "nodeType" for the current node. The node type



jsxGet_nodeValue
public String jsxGet_nodeValue()(Code)
Get the JavaScript property "nodeValue" for the current node. The node value



jsxGet_parentNode
public Object jsxGet_parentNode()(Code)
Get the JavaScript property "parentNode" for the node that contains the current node. The parent node



jsxGet_previousSibling
public Object jsxGet_previousSibling()(Code)
Get the JavaScript property "previousSibling" for the node that contains the current node. The previous sibling node or null if the current node hasno previous sibling.



jsxSet_nodeValue
public void jsxSet_nodeValue(String newValue)(Code)
Set the JavaScript property "nodeValue" for the current node.
Parameters:
  newValue - The new node value



setEventHandler
public void setEventHandler(String eventName, Function eventHandler)(Code)
Defines an event handler
Parameters:
  eventName - the event name (like "onclick")
Parameters:
  eventHandler - the handler (null to reset it)



setEventHandlerProp
protected void setEventHandlerProp(String eventName, Object value)(Code)
Defines an event handler (or maybe any other object)
Parameters:
  eventName - the event name (like "onclick")
Parameters:
  value - the property (null to reset it)



Methods inherited from com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
public Object get(String name, Scriptable start)(Code)(Java Doc)
public static boolean getBooleanArg(int index, Object[] args, boolean defaultValue)(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public Object getDefaultValue(Class hint)(Code)(Java Doc)
final public DomNode getDomNodeOrDie() throws IllegalStateException(Code)(Java Doc)
final public DomNode getDomNodeOrNull()(Code)(Java Doc)
public static int getIntArg(int index, Object[] args, int defaultValue)(Code)(Java Doc)
final protected Log getLog()(Code)(Java Doc)
public static Object getObjectArg(int index, Object[] args, Object defaultValue)(Code)(Java Doc)
protected Scriptable getPrototype(Class javaScriptClass)(Code)(Java Doc)
protected SimpleScriptable getScriptableFor(Object object)(Code)(Java Doc)
protected Scriptable getStartingScope()(Code)(Java Doc)
public static String getStringArg(int index, Object[] args, String defaultValue)(Code)(Java Doc)
protected Transformer getTransformerScriptableFor()(Code)(Java Doc)
protected Window getWindow() throws RuntimeException(Code)(Java Doc)
protected static Window getWindow(Scriptable s) throws RuntimeException(Code)(Java Doc)
protected Object getWithPreemption(String name)(Code)(Java Doc)
public SimpleScriptable makeScriptableFor(DomNode domNode)(Code)(Java Doc)
public void setDomNode(DomNode domNode)(Code)(Java Doc)
protected void setDomNode(DomNode domNode, boolean assignScriptObject)(Code)(Java Doc)
public void setHtmlElement(HtmlElement htmlElement)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.