Java Doc for TreeNode.java in  » Portal » Open-Portal » ob » tree » 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 » Portal » Open Portal » ob.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ob.tree.TreeNode

All known Subclasses:   ob.tree.TreeNodeX,
TreeNode
public class TreeNode implements Serializable(Code)
The TreeNode class is the lowest level class used to manipulate a tree node.


Field Summary
final public static  intTREENODE_FIRST
    
final public static  intTREENODE_LAST
    
final public static  intTREENODE_SORT
    
protected  TreeNodem_pFirstChild
    
protected  TreeNodem_pNextSibling
    
protected  TreeNodem_pParent
    
protected  TreeNodem_pPrevSibling
    


Method Summary
public  booleanaddChild(TreeNode pNewTreeNode)
    
public  booleanaddChild(TreeNode pNewTreeNode, int pInsAfter)
    
public  booleanaddChild(TreeNode pNewTreeNode, TreeNode pInsAfter)
    
public  voidcollapse()
    
public  voiddeleteAllChildren()
    
public  voiddeleteChildren()
    
public  voiddetachFromTree()
    
public  voidexpand(boolean bExpand)
    
public  voidexpand()
    
public  TreeNodegetBottomLeftChild()
    
public  TreeNodegetBottomRightChild()
    
public  intgetDistanceFromRoot()
    
public  TreeNodegetFirstChild()
    
public  TreeNodegetFirstSibling()
    
public  TreeNodegetLastChild()
    
public  TreeNodegetLastSibling()
    
public  TreeNodegetNextInDisplayOrder()
    
public  TreeNodegetNextSibling()
    
public  intgetNumDescendents()
    
public  TreeNodegetParent()
    
public  TreeNodegetPrevInDisplayOrder()
    
public  TreeNodegetPrevSibling()
    
public  TreeNodegetRoot()
    
public  booleanhasChildren()
    
public  booleanisAncestor(TreeNode possibleAncestor)
    
public  booleanisDescendant(TreeNode pNode)
    
public  booleanisExpanded()
    
public  booleanisParent(TreeNode parent)
    
public  booleanisSibling(TreeNode pNodeTest)
    
public  booleanonNextSearchNode(int idSearch, TreeNode pNode)
    
public  TreeNodesearch(int idSearch)
    
public  voidsetFirstChild(TreeNode n)
    
public  voidsetNextSibling(TreeNode n)
    
public  voidsetParent(TreeNode n)
    
public  voidsetPrevSibling(TreeNode n)
    

Field Detail
TREENODE_FIRST
final public static int TREENODE_FIRST(Code)



TREENODE_LAST
final public static int TREENODE_LAST(Code)



TREENODE_SORT
final public static int TREENODE_SORT(Code)



m_pFirstChild
protected TreeNode m_pFirstChild(Code)



m_pNextSibling
protected TreeNode m_pNextSibling(Code)



m_pParent
protected TreeNode m_pParent(Code)



m_pPrevSibling
protected TreeNode m_pPrevSibling(Code)





Method Detail
addChild
public boolean addChild(TreeNode pNewTreeNode)(Code)
adds a child
Parameters:
  pNewTreeNode - adds a new child



addChild
public boolean addChild(TreeNode pNewTreeNode, int pInsAfter)(Code)
add a child
Parameters:
  pNewTreeNode - new tree node to add
Parameters:
  pInsAfter - the node to insert after true if successfully added, otherwise false



addChild
public boolean addChild(TreeNode pNewTreeNode, TreeNode pInsAfter)(Code)
adds a child to the tree
Parameters:
  pNewTreeNode - new item to add
Parameters:
  pInsAfter - adds after this item true if successfully added, otherwise false



collapse
public void collapse()(Code)
collapse the node



deleteAllChildren
public void deleteAllChildren()(Code)
detaches all this nodes children from the tree



deleteChildren
public void deleteChildren()(Code)
currently not implemented



detachFromTree
public void detachFromTree()(Code)
detaches from the tree



expand
public void expand(boolean bExpand)(Code)
virtual method to determine if node is expanded or not
Parameters:
  bExpand - true if you wish to expand, false to collapse



expand
public void expand()(Code)
expand the node



getBottomLeftChild
public TreeNode getBottomLeftChild()(Code)
retrieves the bottom left child bottom left child as type TreeNode



getBottomRightChild
public TreeNode getBottomRightChild()(Code)
retrieves the bottom right child bottom right child as type TreeNode



getDistanceFromRoot
public int getDistanceFromRoot()(Code)
determines how many levels down the node is from the root distance from root as type int



getFirstChild
public TreeNode getFirstChild()(Code)
retrieves the first child node
Parameters:
  first - child node as type TreeNode



getFirstSibling
public TreeNode getFirstSibling()(Code)
retrieves the first sibling node first sibling as type TreeNode



getLastChild
public TreeNode getLastChild()(Code)
retrieves the last child node last child node as type TreeNode



getLastSibling
public TreeNode getLastSibling()(Code)
retrieves the last sibling as type TreeNode last sibling as type TreeNode



getNextInDisplayOrder
public TreeNode getNextInDisplayOrder()(Code)
retrieves next node in the display next in display as type TreeNode



getNextSibling
public TreeNode getNextSibling()(Code)
retrieves the next sibling next sibling as type TreeNode



getNumDescendents
public int getNumDescendents()(Code)
how many total descendents fall under this node number of descendents



getParent
public TreeNode getParent()(Code)
retrieves the parent node parent as type TreeNode



getPrevInDisplayOrder
public TreeNode getPrevInDisplayOrder()(Code)
retrieves the previous node in the display previous node as type TreeNode



getPrevSibling
public TreeNode getPrevSibling()(Code)
retrieves the previous sibling
Parameters:
  previous - sibling as type TreeNode



getRoot
public TreeNode getRoot()(Code)
retrieves the root node root as type TreeNode



hasChildren
public boolean hasChildren()(Code)
determines if node has children true if children exist, otherwise false



isAncestor
public boolean isAncestor(TreeNode possibleAncestor)(Code)
determines whether this node is an ancestor of the node passed in
Parameters:
  possibleAncestor - TreeNode to check against true if it is an ancestor, otherwise false



isDescendant
public boolean isDescendant(TreeNode pNode)(Code)
determines whether this node is a descendent of the node passed in
Parameters:
  pNode - the node to check if it is a descendant true if descendant, otherwise false



isExpanded
public boolean isExpanded()(Code)
virtual method to determine if node is expanded or not



isParent
public boolean isParent(TreeNode parent)(Code)
determines whether the node contains children nodes true if children exist, otherwise false



isSibling
public boolean isSibling(TreeNode pNodeTest)(Code)
determines whether the node is a sibling of the TreeNode passed in
Parameters:
  pNodeTest - TreeNode to test whether it is a sibling or not true if it is a sibling, otherwise false



onNextSearchNode
public boolean onNextSearchNode(int idSearch, TreeNode pNode)(Code)
overridable function for searching
Parameters:
  idSearch - id to search for
Parameters:
  pNode - node to start search from true if found



search
public TreeNode search(int idSearch)(Code)
search for the id
Parameters:
  idSearch - id to search for item as type TreeNode



setFirstChild
public void setFirstChild(TreeNode n)(Code)
sets first child
Parameters:
  n - first child



setNextSibling
public void setNextSibling(TreeNode n)(Code)
sets next sibling
Parameters:
  n - next sibling



setParent
public void setParent(TreeNode n)(Code)
sets parent to node
Parameters:
  n - parent node to set



setPrevSibling
public void setPrevSibling(TreeNode n)(Code)
sets previous sibling
Parameters:
  n - previous sibling



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.