Java Doc for Node.java in  » Ajax » gwtext-2.01 » com » gwtext » client » data » 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 » Ajax » gwtext 2.01 » com.gwtext.client.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.core.JsObject
      com.gwtext.client.data.Node

All known Subclasses:   com.gwtext.client.widgets.tree.TreeNode,
Node
public class Node extends JsObject (Code)
A data Node class.


Field Summary
protected  JavaScriptObjectconfigJS
    

Constructor Summary
public  Node()
     Create a new Node instance.
public  Node(JavaScriptObject jsObj)
    

Method Summary
native public  voidaddListener(NodeListener listener)
     Add a Node listener.
native public  voidappendChild(Node child)
     Insert node as the last child node of this node.
native public  voidbubble(NodeTraversalCallback cb)
     Bubbles up the tree from this node, calling the specified function with each node.
native public  voidcascade(NodeTraversalCallback cb)
     Cascades down the tree from this node, calling the specified function with each node.
native public  booleancontains(Node child)
     Returns true if this node is an ancestor (at any point) of the passed node.
native protected  JavaScriptObjectcreate(JavaScriptObject config)
    
protected  NodecreateNode(JavaScriptObject jsNode)
    
native public  voideachChild(NodeTraversalCallback cb)
     Interates the child nodes of this node, calling the specified function with each node.
public  booleanequals(Object o)
    
native public  NodefindChildBy(NodeTraversalCallback cb)
     Finds the first child by a custom callback function.
native public  StringgetAttribute(String name)
     Returns a node's attribute as String.
native public  ObjectgetAttributeAsObject(String name)
     Returns a node's Object attribute.
public  Node[]getChildNodes()
     Returns all child nodes of this node.
native public  intgetDepth()
     Returns depth of this node (the root node has a depth of 0).
native public  NodegetFirstChild()
     Return the first direct child node of this node, or null if this node has no child nodes.
native public  StringgetId()
     Return the node's ID.
public  JavaScriptObjectgetJsObj()
    
native public  NodegetLastChild()
     return the last direct child node of this node, or null if this node has no child nodes.
native public  NodegetNextSibling()
     Return the node immediately following this node in the tree, or null if there is no sibling node.
native public  TreegetOwnerTree()
     Returns the tree this node is in.
native public  NodegetParentNode()
     The parent node for this node.
native public  StringgetPath()
     Returns the path for this node.
native public  StringgetPath(String attr)
     Returns the path for this node.
native public  NodegetPreviousSibling()
     Return the node immediately preceding this node in the tree, or null if there is no sibling node.
public  ObjectgetUserObject()
    
public  inthashCode()
    
native public  intindexOf(Node child)
     Returns the index of a child node.
native public  NodeinsertBefore(Node node, Node nodeRef)
     Inserts the first node before the second node in this nodes childNodes collection.
native public  booleanisAncestor(Node node)
     Returns true if the passed node is an ancestor (at any point) of this node.
native public  booleanisFirst()
     Returns true if this node is the first child of its parent.
native public  booleanisLast()
     Returns true if this node is the last child of its parent.
native public  booleanisLeaf()
     Returns true if this node is a leaf.
native public  Nodeitem(int index)
     Returns the child node at the specified index.
native public  voidremove()
     Removes this node from it's parent.
native public  NoderemoveChild(Node child)
     Removes a child node from this node.
native public  NodereplaceChild(Node newChild, Node oldChild)
     Replaces one child node in this node with another.
native public  voidsetAttribute(String name, Object value)
     Sets a attribute on the node.
native public  voidsetAttribute(String name, String value)
     Sets a attribute on the node.
native protected  voidsetAttribute(String name, JavaScriptObject value)
    
public  voidsetId(String id)
     Set the Node's ID.
public  voidsetLeaf(boolean leaf)
     Sets whether the node is a leaf.
public  voidsetUserObject(Object userObject)
     Associate a user defined Object with the node.
native public  voidsort(Comparator c)
     Sorts this nodes children using the supplied sort function.

Field Detail
configJS
protected JavaScriptObject configJS(Code)




Constructor Detail
Node
public Node()(Code)
Create a new Node instance.



Node
public Node(JavaScriptObject jsObj)(Code)




Method Detail
addListener
native public void addListener(NodeListener listener)(Code)
Add a Node listener.
Parameters:
  listener - the listener



appendChild
native public void appendChild(Node child)(Code)
Insert node as the last child node of this node.
Parameters:
  child - node to append



bubble
native public void bubble(NodeTraversalCallback cb)(Code)
Bubbles up the tree from this node, calling the specified function with each node. If the callback method returns false at any point, the bubble is stopped.
Parameters:
  cb - the callback function handle



cascade
native public void cascade(NodeTraversalCallback cb)(Code)
Cascades down the tree from this node, calling the specified function with each node. If the callback method returns false at any point, the cascade is stopped on that branch.
Parameters:
  cb - the callback function handle



contains
native public boolean contains(Node child)(Code)
Returns true if this node is an ancestor (at any point) of the passed node.
Parameters:
  child - the node true if contains



create
native protected JavaScriptObject create(JavaScriptObject config)(Code)



createNode
protected Node createNode(JavaScriptObject jsNode)(Code)



eachChild
native public void eachChild(NodeTraversalCallback cb)(Code)
Interates the child nodes of this node, calling the specified function with each node. If the callback function returns false at any point, the iteration stops.
Parameters:
  cb - the callback function handle



equals
public boolean equals(Object o)(Code)



findChildBy
native public Node findChildBy(NodeTraversalCallback cb)(Code)
Finds the first child by a custom callback function. The child matches if the function passed returns true.
Parameters:
  cb - the callback function handle the child or null if not found



getAttribute
native public String getAttribute(String name)(Code)
Returns a node's attribute as String.
Parameters:
  name - the attribute name attribute value as String



getAttributeAsObject
native public Object getAttributeAsObject(String name)(Code)
Returns a node's Object attribute.
Parameters:
  name - the attribute name attribute value
See Also:   Node.setAttribute(String,Object)



getChildNodes
public Node[] getChildNodes()(Code)
Returns all child nodes of this node. node's child nodes, null if none present



getDepth
native public int getDepth()(Code)
Returns depth of this node (the root node has a depth of 0). the depth of this node



getFirstChild
native public Node getFirstChild()(Code)
Return the first direct child node of this node, or null if this node has no child nodes. the first child node



getId
native public String getId()(Code)
Return the node's ID. the node ID, null if not defined



getJsObj
public JavaScriptObject getJsObj()(Code)



getLastChild
native public Node getLastChild()(Code)
return the last direct child node of this node, or null if this node has no child nodes. the last child node



getNextSibling
native public Node getNextSibling()(Code)
Return the node immediately following this node in the tree, or null if there is no sibling node. this nodes next sibling



getOwnerTree
native public Tree getOwnerTree()(Code)
Returns the tree this node is in. the owner tree



getParentNode
native public Node getParentNode()(Code)
The parent node for this node. the parent node, null if root node



getPath
native public String getPath()(Code)
Returns the path for this node. The path can be used to expand or select this node programmatically. the path



getPath
native public String getPath(String attr)(Code)
Returns the path for this node. The path can be used to expand or select this node programmatically.
Parameters:
  attr - the attr to use for the path (defaults to the node's id) the path



getPreviousSibling
native public Node getPreviousSibling()(Code)
Return the node immediately preceding this node in the tree, or null if there is no sibling node. this nodes previosu sibling



getUserObject
public Object getUserObject()(Code)
Return the user defined object the user defined object



hashCode
public int hashCode()(Code)



indexOf
native public int indexOf(Node child)(Code)
Returns the index of a child node.
Parameters:
  child - the child node the index of the node or -1 if it was not found



insertBefore
native public Node insertBefore(Node node, Node nodeRef)(Code)
Inserts the first node before the second node in this nodes childNodes collection.
Parameters:
  node - the node to insert
Parameters:
  nodeRef - the node to insert before (if null the node is appended) the inserted node



isAncestor
native public boolean isAncestor(Node node)(Code)
Returns true if the passed node is an ancestor (at any point) of this node.
Parameters:
  node - the node to test true of ancestor



isFirst
native public boolean isFirst()(Code)
Returns true if this node is the first child of its parent. true if first node



isLast
native public boolean isLast()(Code)
Returns true if this node is the last child of its parent. true if last



isLeaf
native public boolean isLeaf()(Code)
Returns true if this node is a leaf. true if leaf node



item
native public Node item(int index)(Code)
Returns the child node at the specified index.
Parameters:
  index - the index the child at index, null if none present



remove
native public void remove()(Code)
Removes this node from it's parent.



removeChild
native public Node removeChild(Node child)(Code)
Removes a child node from this node.
Parameters:
  child - the node to remove the removed node



replaceChild
native public Node replaceChild(Node newChild, Node oldChild)(Code)
Replaces one child node in this node with another.
Parameters:
  newChild - the replacement node
Parameters:
  oldChild - the node to replace the replaced node



setAttribute
native public void setAttribute(String name, Object value)(Code)
Sets a attribute on the node.
Parameters:
  name - the attribute name
Parameters:
  value - the attribute value



setAttribute
native public void setAttribute(String name, String value)(Code)
Sets a attribute on the node.
Parameters:
  name - the attribute name
Parameters:
  value - the attribute value



setAttribute
native protected void setAttribute(String name, JavaScriptObject value)(Code)



setId
public void setId(String id)(Code)
Set the Node's ID.
Parameters:
  id - the node ID



setLeaf
public void setLeaf(boolean leaf)(Code)
Sets whether the node is a leaf.
Parameters:
  leaf - true if leaf



setUserObject
public void setUserObject(Object userObject)(Code)
Associate a user defined Object with the node.
Parameters:
  userObject - the user data object



sort
native public void sort(Comparator c)(Code)
Sorts this nodes children using the supplied sort function.
Parameters:
  c - the Comparator return 0 if equal, -1 if first node less than second, 1 if first greater than second



Fields inherited from com.gwtext.client.core.JsObject
protected JavaScriptObject jsObj(Code)(Java Doc)

Methods inherited from com.gwtext.client.core.JsObject
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public String[] getProperties()(Code)(Java Doc)
protected boolean isCreated()(Code)(Java Doc)
public void setJsObj(JavaScriptObject jsObj)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.