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

TreeItem
public class TreeItem extends Node (Code)


Field Summary
 RectangleBaseBound
    
 ObjectData
    
final public static  intEXPAND
    
 intImage
    
 intIndent
    
 intSelImage
    
 intStatus
    
final public static  intUNEXPAND
    
 booleanVisible
    
 intnChild
    

Constructor Summary
public  TreeItem(String label)
    

Method Summary
public  voidaddItem(TreeItem child)
     adds a TreeItem to be a child of this TreeItem.
public  Rectanglebounds()
    
public synchronized  voiddeleteChild(TreeItem item)
    
public  TreeItemfindObject(Object o)
    
public  TreeItemgetChild(int index)
    
public  intgetCount()
     returns the number of children the tree item has.
public  ObjectgetData()
    
public  intgetIndex()
     returns the position of the tree item relative to the parent. position of tree item.
public  TreeItemgetItemChild(int index)
    
public  StringgetLabel()
    
public  TreeItemgetNextItem()
     retrieves the next sequential tree item on the same level with the same parent.
public  TreeItemgetPrevItem()
     retrieves the previous sequential tree item on the same level with the same parent.
public  intgetStatus()
     gets the expanded status of the tree item.
public  booleanhasChild()
    
public  booleanisChildOf(TreeItem[] items)
    
public  booleanisParentOf(TreeItem item)
    
public  voidprintTree()
    
public  voidremove(TreeItem item)
    
public  voidremoveAll()
    
public  voidsetData(Object data)
    
public  voidsetLabel(String s)
    
public  voidsetStatus(int s)
    

Field Detail
BaseBound
Rectangle BaseBound(Code)



Data
Object Data(Code)



EXPAND
final public static int EXPAND(Code)
indicates an EXPANDed state for the tree item



Image
int Image(Code)



Indent
int Indent(Code)



SelImage
int SelImage(Code)



Status
int Status(Code)



UNEXPAND
final public static int UNEXPAND(Code)
indicates an UNEXPANDed state for the tree item



Visible
boolean Visible(Code)
parent of the tree item



nChild
int nChild(Code)




Constructor Detail
TreeItem
public TreeItem(String label)(Code)
constructor accepts a label for the item
Parameters:
  label - the label for the tree item




Method Detail
addItem
public void addItem(TreeItem child)(Code)
adds a TreeItem to be a child of this TreeItem.
Parameters:
  item - the new item to add as a child



bounds
public Rectangle bounds()(Code)
retrieves the bounding rectangle for the item bounding rectangle as type Rectangle



deleteChild
public synchronized void deleteChild(TreeItem item)(Code)



findObject
public TreeItem findObject(Object o)(Code)



getChild
public TreeItem getChild(int index)(Code)
retrieves a child of the tree item
Parameters:
  index - which child to retrieve the child as type TreeItem
See Also:   TreeItem.hasChild
See Also:   TreeItem.getCount



getCount
public int getCount()(Code)
returns the number of children the tree item has. the number of children as type int
See Also:   TreeItem.hasChild
See Also:   TreeItem.getChild



getData
public Object getData()(Code)
retrieves the data associated with this item data as type Object
See Also:   TreeItem.setData



getIndex
public int getIndex()(Code)
returns the position of the tree item relative to the parent. position of tree item. If no parent, returns a -1.
See Also:   TreeItem.getNextItem



getItemChild
public TreeItem getItemChild(int index)(Code)



getLabel
public String getLabel()(Code)
gets the label for the tree item the label as type String
See Also:   TreeItem.setLabel



getNextItem
public TreeItem getNextItem()(Code)
retrieves the next sequential tree item on the same level with the same parent. the next tree item on this level with the same parent as type TreeItem.if none found, then return null.
See Also:   TreeItem.getIndex
See Also:   TreeItem.getPrevItem



getPrevItem
public TreeItem getPrevItem()(Code)
retrieves the previous sequential tree item on the same level with the same parent. the previous tree item on this level with the same parent; if nonefound return null.
See Also:   TreeItem.getIndex
See Also:   TreeItem.getNextItem



getStatus
public int getStatus()(Code)
gets the expanded status of the tree item. expanded status as one of following int values: EXPAND or UNEXPAND
See Also:   TreeItem.setStatus



hasChild
public boolean hasChild()(Code)
determines whether tree item has child items true if children exist, otherwise false
See Also:   TreeItem.getCount
See Also:   TreeItem.getChild



isChildOf
public boolean isChildOf(TreeItem[] items)(Code)
determines whether this item is the child of one of the items
Parameters:
  items - the items to check if it is a parent of this item whether this item is a child as type boolean



isParentOf
public boolean isParentOf(TreeItem item)(Code)
determines whether item is the parent of a this item
Parameters:
  item - the item to check if it is a child of this item whether the item is a child as type boolean



printTree
public void printTree()(Code)



remove
public void remove(TreeItem item)(Code)
removes a child item from the tree item
Parameters:
  item - item to remove



removeAll
public void removeAll()(Code)



setData
public void setData(Object data)(Code)
sets the data associated with this item
Parameters:
  data - new data for this item as type Object
See Also:   TreeItem.getData



setLabel
public void setLabel(String s)(Code)
sets the label for the tree item
Parameters:
  s - label as type String
See Also:   TreeItem.getLabel



setStatus
public void setStatus(int s)(Code)
sets the expanded status of the tree item
Parameters:
  s - can be EXPAND or UNEXPAND
See Also:   getStatus



Fields inherited from ob.tree.Node
Vector m_arrTreeSubItems(Code)(Java Doc)
boolean m_bExpanded(Code)(Java Doc)
boolean m_bVisible(Code)(Java Doc)
Font m_fonFont(Code)(Java Doc)
int m_nChildren(Code)(Java Doc)
int m_nExpandedImage(Code)(Java Doc)
int m_nImage(Code)(Java Doc)
String m_pszText(Code)(Java Doc)

Methods inherited from ob.tree.Node
public void addSubItem(String s)(Code)(Java Doc)
public void addSubItem(ListSubItem s)(Code)(Java Doc)
public void addSubItem(Node item)(Code)(Java Doc)
public void expand(boolean bExpand)(Code)(Java Doc)
public int getExpandedImage()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public int getImage()(Code)(Java Doc)
public Node getNodeChild(int index)(Code)(Java Doc)
public Vector getSubItems()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public boolean isExpanded()(Code)(Java Doc)
boolean isVisible()(Code)(Java Doc)
public void removeAllSubItems()(Code)(Java Doc)
public void removeSubItem(int nIndex)(Code)(Java Doc)
public void removeSubItem(Node item)(Code)(Java Doc)
public void setExpandedImage(int i)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setImage(int i)(Code)(Java Doc)
public void setText(String s)(Code)(Java Doc)
public void setVisible(boolean bVisible)(Code)(Java Doc)

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.