Java Doc for Node.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
      ob.tree.TreeNodeX
         ob.tree.Node

All known Subclasses:   ob.tree.TreeItem,
Node
public class Node extends TreeNodeX (Code)
The Node class is used to describe various properties associated with an individual level of the tree. It inherits from TreeNodeX and TreeNode to provide much of the sibling/parent node navigation. The Node class itself is responsible for many of the properties of the node itself
See Also:   ob.tree.TreeNodeX
See Also:   ob.tree.TreeNode
See Also:   ob.tree.TreeBase


Field Summary
 Vectorm_arrTreeSubItems
    
 booleanm_bExpanded
    
 booleanm_bVisible
    
 Fontm_fonFont
    
 intm_nChildren
    
 intm_nExpandedImage
    
 intm_nImage
    
 Stringm_pszText
    

Constructor Summary
public  Node(String label, int image, int expImg)
    
public  Node()
    

Method Summary
public  voidaddSubItem(String s)
     appends a sub item to the node.
public  voidaddSubItem(ListSubItem s)
    
public  voidaddSubItem(Node item)
    
public  voidexpand(boolean bExpand)
    
public  intgetExpandedImage()
    
public  FontgetFont()
    
public  intgetImage()
    
public  NodegetNodeChild(int index)
    
public  VectorgetSubItems()
    
public  StringgetText()
    
public  booleanisExpanded()
    
 booleanisVisible()
    
public  voidremoveAllSubItems()
    
public  voidremoveSubItem(int nIndex)
    
public  voidremoveSubItem(Node item)
    
public  voidsetExpandedImage(int i)
    
public  voidsetFont(Font f)
    
public  voidsetImage(int i)
    
public  voidsetText(String s)
    
public  voidsetVisible(boolean bVisible)
    

Field Detail
m_arrTreeSubItems
Vector m_arrTreeSubItems(Code)



m_bExpanded
boolean m_bExpanded(Code)



m_bVisible
boolean m_bVisible(Code)



m_fonFont
Font m_fonFont(Code)



m_nChildren
int m_nChildren(Code)



m_nExpandedImage
int m_nExpandedImage(Code)



m_nImage
int m_nImage(Code)



m_pszText
String m_pszText(Code)




Constructor Detail
Node
public Node(String label, int image, int expImg)(Code)
constructor
Parameters:
  label - the label for the tree node
Parameters:
  image - reference to the image displayed when the node is not expanded
Parameters:
  expImg - reference to the image displayed when the node is expanded



Node
public Node()(Code)
constructor




Method Detail
addSubItem
public void addSubItem(String s)(Code)
appends a sub item to the node. In a multiple column tree control, the leftmost column is the "main" item, while individual items can be stored in the columns to the right as subitems.
Parameters:
  s - the String to create the subitem with



addSubItem
public void addSubItem(ListSubItem s)(Code)
adds a new sub item to the node
Parameters:
  s - subitem to add
See Also:   ob.listbox.ListSubItem



addSubItem
public void addSubItem(Node item)(Code)



expand
public void expand(boolean bExpand)(Code)
expands the node if currently closed, otherwise collapses
Parameters:
  bExpand - true if you wish to expand, otherwise collapse



getExpandedImage
public int getExpandedImage()(Code)
retrieves the expanded image reference expanded image reference as type int



getFont
public Font getFont()(Code)
retrieves the font associated with the node node font as type Font



getImage
public int getImage()(Code)
retrieves the current image displayed reference to the currently displayed image as type int



getNodeChild
public Node getNodeChild(int index)(Code)



getSubItems
public Vector getSubItems()(Code)
retrieves all the subitems of the Node in a Vector list subitems as type Vector



getText
public String getText()(Code)
retrieves the text of the node text as type String



isExpanded
public boolean isExpanded()(Code)
determines whether the node is currently expanded or not true if expanded, otherwise false



isVisible
boolean isVisible()(Code)
determines whether the node is currently visible true if visible, otherwise false



removeAllSubItems
public void removeAllSubItems()(Code)



removeSubItem
public void removeSubItem(int nIndex)(Code)



removeSubItem
public void removeSubItem(Node item)(Code)



setExpandedImage
public void setExpandedImage(int i)(Code)
sets the reference to the expanded image
Parameters:
  i - reference to the expanded image



setFont
public void setFont(Font f)(Code)
sets the font associated with the node
Parameters:
  f - font to set for the node



setImage
public void setImage(int i)(Code)
sets the unexpanded image
Parameters:
  i - reference to the unexpanded image



setText
public void setText(String s)(Code)
sets the text for the node
Parameters:
  s - text as type String



setVisible
public void setVisible(boolean bVisible)(Code)
sets the visible state of the node
Parameters:
  bVisible - true if item should be visible, otherwise false



Fields inherited from ob.tree.TreeNodeX
int m_root_nFilterLevel(Code)(Java Doc)

Methods inherited from ob.tree.TreeNodeX
public int getFilterLevel()(Code)(Java Doc)
public TreeNode getFirstChild()(Code)(Java Doc)
public TreeNode getNextSibling()(Code)(Java Doc)
public TreeNode getParent()(Code)(Java Doc)
public TreeNode getPrevSibling()(Code)(Java Doc)
public int getUnfilteredDistanceFromRoot()(Code)(Java Doc)
public boolean setFilterLevel(int nLevel)(Code)(Java Doc)

Fields inherited from ob.tree.TreeNode
final public static int TREENODE_FIRST(Code)(Java Doc)
final public static int TREENODE_LAST(Code)(Java Doc)
final public static int TREENODE_SORT(Code)(Java Doc)
protected TreeNode m_pFirstChild(Code)(Java Doc)
protected TreeNode m_pNextSibling(Code)(Java Doc)
protected TreeNode m_pParent(Code)(Java Doc)
protected TreeNode m_pPrevSibling(Code)(Java Doc)

Methods inherited from ob.tree.TreeNode
public boolean addChild(TreeNode pNewTreeNode)(Code)(Java Doc)
public boolean addChild(TreeNode pNewTreeNode, int pInsAfter)(Code)(Java Doc)
public boolean addChild(TreeNode pNewTreeNode, TreeNode pInsAfter)(Code)(Java Doc)
public void collapse()(Code)(Java Doc)
public void deleteAllChildren()(Code)(Java Doc)
public void deleteChildren()(Code)(Java Doc)
public void detachFromTree()(Code)(Java Doc)
public void expand(boolean bExpand)(Code)(Java Doc)
public void expand()(Code)(Java Doc)
public TreeNode getBottomLeftChild()(Code)(Java Doc)
public TreeNode getBottomRightChild()(Code)(Java Doc)
public int getDistanceFromRoot()(Code)(Java Doc)
public TreeNode getFirstChild()(Code)(Java Doc)
public TreeNode getFirstSibling()(Code)(Java Doc)
public TreeNode getLastChild()(Code)(Java Doc)
public TreeNode getLastSibling()(Code)(Java Doc)
public TreeNode getNextInDisplayOrder()(Code)(Java Doc)
public TreeNode getNextSibling()(Code)(Java Doc)
public int getNumDescendents()(Code)(Java Doc)
public TreeNode getParent()(Code)(Java Doc)
public TreeNode getPrevInDisplayOrder()(Code)(Java Doc)
public TreeNode getPrevSibling()(Code)(Java Doc)
public TreeNode getRoot()(Code)(Java Doc)
public boolean hasChildren()(Code)(Java Doc)
public boolean isAncestor(TreeNode possibleAncestor)(Code)(Java Doc)
public boolean isDescendant(TreeNode pNode)(Code)(Java Doc)
public boolean isExpanded()(Code)(Java Doc)
public boolean isParent(TreeNode parent)(Code)(Java Doc)
public boolean isSibling(TreeNode pNodeTest)(Code)(Java Doc)
public boolean onNextSearchNode(int idSearch, TreeNode pNode)(Code)(Java Doc)
public TreeNode search(int idSearch)(Code)(Java Doc)
public void setFirstChild(TreeNode n)(Code)(Java Doc)
public void setNextSibling(TreeNode n)(Code)(Java Doc)
public void setParent(TreeNode n)(Code)(Java Doc)
public void setPrevSibling(TreeNode n)(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.