Java Doc for ItsNatTreeCellUI.java in  » Ajax » ItsNat » org » itsnat » comp » ui » 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 » ItsNat » org.itsnat.comp.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.comp.ui.ItsNatTreeCellUI

All known Subclasses:   org.itsnat.impl.comp.ui.ItsNatTreeCellUIImpl,
ItsNatTreeCellUI
public interface ItsNatTreeCellUI extends ItsNatUserData(Code)
Contains visual information of a tree node.

This interface is the "componentized" version of org.itsnat.core.domutil.ElementTreeNode and follows a similar philosophy. The objective is similar to ItsNatListCellUI applied to tree nodes. Child index, row, tree path, deep level etc are tolerant to tree changes (are automatically updated).


author:
   Jose Maria Arranz Santamaria
See Also:   ItsNatTreeUI.getItsNatTreeCellUIFromRow(int)
See Also:   ItsNatTreeUI.getItsNatTreeCellUIFromNode(org.w3c.dom.Node)




Method Summary
public  voidexpand(boolean expandState)
     Sets the new expand state.
public  intgetChildCount()
     Returns the number of direct child nodes of this node.
public  ItsNatTreeCellUIgetChildItsNatTreeCellUIAt(int index)
     Returns the direct child tree node UI at the specified position.
Parameters:
  index - zero based index of the child node position.
public  ElementgetContentElement()
     Returns the content element of this tree node.
public  intgetDeepLevel()
     Returns the deep (number of parents) of this node.
public  ElementgetHandleElement()
     Returns the handle element of this tree node.
public  ElementgetIconElement()
     Returns the icon element of this tree node.
public  intgetIndex()
     Returns the zero based index of this node as a child relative to the parent. the index of this node relative to the parent.
public  ItsNatTreeUIgetItsNatTreeUI()
     Returns the parent tree UI this object belongs to.
public  ElementgetLabelElement()
     Returns the label element of this tree node.
public  ElementgetParentElement()
     Returns the parent element containing this tree node.
public  intgetRow()
     Returns the row index of this node seeing the tree as a list.
public  ItsNatTreeCellUIgetTreeNodeUIParent()
     Returns the parent tree node UI of this node.
public  ItsNatTreeCellUI[]getTreeNodeUIPath()
     Returns an array with tree node UI objects from this node to the top most (usually the root).
public  TreePathgetTreePath()
     Returns the tree path of this node.
public  booleanisExpanded()
     Returns the current expand state.



Method Detail
expand
public void expand(boolean expandState)(Code)
Sets the new expand state.

Current implementation does not perform DOM changes and only serves to save expand state. Future versions might use this method to render visually the markup effect of the expansion/collapse.

Expand state of child or parent nodes is not affected.


Parameters:
  expandState - the new state.
See Also:   ItsNatTreeCellUI.isExpanded()
See Also:   org.itsnat.comp.ItsNatTree.expandNode(javax.swing.tree.TreePath)
See Also:   org.itsnat.comp.ItsNatTree.collapseNode(javax.swing.tree.TreePath)



getChildCount
public int getChildCount()(Code)
Returns the number of direct child nodes of this node. the number of child nodes.



getChildItsNatTreeCellUIAt
public ItsNatTreeCellUI getChildItsNatTreeCellUIAt(int index)(Code)
Returns the direct child tree node UI at the specified position.
Parameters:
  index - zero based index of the child node position. the child tree node.



getContentElement
public Element getContentElement()(Code)
Returns the content element of this tree node. the content element of this node.
See Also:   ItsNatTreeUI.getContentElementFromRow(int)



getDeepLevel
public int getDeepLevel()(Code)
Returns the deep (number of parents) of this node. If this node is root or a top most (rootless case) returns 0. the deep level of this node.



getHandleElement
public Element getHandleElement()(Code)
Returns the handle element of this tree node. the handle element of this node.
See Also:   ItsNatTreeUI.getHandleElementFromRow(int)



getIconElement
public Element getIconElement()(Code)
Returns the icon element of this tree node. the icon element of this node.
See Also:   ItsNatTreeUI.getIconElementFromRow(int)



getIndex
public int getIndex()(Code)
Returns the zero based index of this node as a child relative to the parent. the index of this node relative to the parent. -1 if this node is a root or a top most node (rootless tree).



getItsNatTreeUI
public ItsNatTreeUI getItsNatTreeUI()(Code)
Returns the parent tree UI this object belongs to. the parent tree UI.



getLabelElement
public Element getLabelElement()(Code)
Returns the label element of this tree node. the label element of this node.
See Also:   ItsNatTreeUI.getLabelElementFromRow(int)



getParentElement
public Element getParentElement()(Code)
Returns the parent element containing this tree node. the parent element of this node.
See Also:   ItsNatTreeUI.getParentElementFromRow(int)



getRow
public int getRow()(Code)
Returns the row index of this node seeing the tree as a list. 0 if this node is the root regardless this tree is rootless or not (if rootless never returns 0 because root node has not markup/tree node UI). the row index of this node seeing the tree as a list.
See Also:   ItsNatTreeUI.getItsNatTreeCellUIFromRow(int)



getTreeNodeUIParent
public ItsNatTreeCellUI getTreeNodeUIParent()(Code)
Returns the parent tree node UI of this node. the parent tree node UI.



getTreeNodeUIPath
public ItsNatTreeCellUI[] getTreeNodeUIPath()(Code)
Returns an array with tree node UI objects from this node to the top most (usually the root).

Element at 0 is the top most node; if this tree is not rootless 0 element is the root, otherwise is the top most parent node containing this node.

an array with this object and any parent tree node UI.



getTreePath
public TreePath getTreePath()(Code)
Returns the tree path of this node. the tree path.



isExpanded
public boolean isExpanded()(Code)
Returns the current expand state. the current expand state, true by default.
See Also:   ItsNatTreeCellUI.expand(boolean)
See Also:   org.itsnat.comp.ItsNatTree.isExpandedNode(javax.swing.tree.TreePath)
See Also:   



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