Java Doc for ItsNatTreeUI.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.ItsNatTreeUI

All known Subclasses:   org.itsnat.impl.comp.ui.ItsNatTreeUIImpl,
ItsNatTreeUI
public interface ItsNatTreeUI extends ItsNatElementComponentUI(Code)
Is the base interface of the User Interface of a tree component.

Tree nodes are managed using the current tree structure and renderer.

Current implementation uses the tree data model when necessary and relays heavily on org.itsnat.core.domutil.ElementTree and related interfaces/objects.

If the tree is rootless there is no markup to the root, method calls like getParentElementFromRow(0) returns null.

Current implementation does not use the data model


author:
   Jose Maria Arranz Santamaria
See Also:   ItsNatTree.getItsNatTreeUI
See Also:   ItsNatTree.getItsNatTreeCellRenderer
See Also:   ItsNatTree.getItsNatTreeStructure
See Also:   




Method Summary
public  voidaddRootNode(Object dataNodeRoot)
     Adds a root tree node and renders the value using the current structure and renderer.
public  ElementgetContentElementFromRow(int row)
     Returns the content element of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementgetContentElementFromTreePath(TreePath path)
     Returns the content element of the tree node specified by the tree path.
public  ElementgetHandleElementFromRow(int row)
     Returns the handle element of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementgetHandleElementFromTreePath(TreePath path)
     Returns the handle element of the tree node specified by the tree path.
public  ElementgetIconElementFromRow(int row)
     Returns the icon element of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementgetIconElementFromTreePath(TreePath path)
     Returns the icon element of the tree node specified by the tree path.
public  ItsNatTreegetItsNatTree()
     Returns the associated component object.
public  ItsNatTreeCellUIgetItsNatTreeCellUIFromNode(Node node)
     Returns the object info of the tree node containing the specified node.
public  ItsNatTreeCellUIgetItsNatTreeCellUIFromRow(int row)
     Returns the object info of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ItsNatTreeCellUIgetItsNatTreeCellUIFromTreePath(TreePath path)
     Returns the object info of the tree node specified by the tree path.
public  ElementgetLabelElementFromRow(int row)
     Returns the label element of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementgetLabelElementFromTreePath(TreePath path)
     Returns the label element of the tree node specified by the tree path.
public  ElementgetParentElementFromRow(int row)
     Returns the parent element of the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementgetParentElementFromTreePath(TreePath path)
     Returns the parent element of the tree node specified by the tree path.
public  voidinsertTreeNodeAt(int index, TreePath parentPath)
     Inserts a new child tree node at the specified position below the parent tree node specified by its path.
Parameters:
  index - 0 based index of the new tree node relative to the parent.
public  voidinsertTreeNodeAt(TreePath path)
     Inserts a new child tree node at the position specified by its path.
Parameters:
  path - path of the new tree node.
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidremoveAllChildTreeNodes(TreePath parentPath)
     Removes all tree nodes below the specified parent tree node by its path.
Parameters:
  parentPath - the path of the parent tree node.
public  voidremoveRootNode()
     Removes the current root tree node, if the tree is empty does nothing.
public  voidremoveTreeNodeAt(int index, TreePath parentPath)
     Removes the child tree node specified by its index relative to the tree node parent specified by its path.
Parameters:
  index - 0 based index of the child tree node to remove.
Parameters:
  parentPath - the path of the parent tree node.
public  voidremoveTreeNodeAt(TreePath path)
     Removes the child tree node specified by its path.
Parameters:
  path - path of the tree node to remove.
public  voidsetTreeNodeValueAt(int index, TreePath parentPath, boolean hasFocus)
     Renders the submitted data value of the child tree node specified by its index relative to the tree node parent specified by its path.
Parameters:
  index - 0 based index of the child tree node to render.
Parameters:
  parentPath - the path of the parent tree node.
public  voidsetTreeNodeValueAt(TreePath path, boolean hasFocus)
     Renders the submitted data value of the tree node specified by its path.
Parameters:
  path - path of the tree node.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.



Method Detail
addRootNode
public void addRootNode(Object dataNodeRoot)(Code)
Adds a root tree node and renders the value using the current structure and renderer.

If the tree already has a root node an exception is thrown.


Parameters:
  dataNodeRoot - the data value of the new root node.
See Also:   org.itsnat.core.domutil.ElementTree.addRootNode
See Also:   



getContentElementFromRow
public Element getContentElementFromRow(int row)(Code)
Returns the content element of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the content element of the tree node at the specified position or null if the tree is empty or row is out of bounds.
See Also:   ItsNatTreeCellUI.getContentElement
See Also:   
See Also:   org.itsnat.comp.ItsNatTreeStructure.getContentElement(ItsNatTreeintElement)
See Also:   
See Also:   org.itsnat.core.domutil.ElementTreeNode.getContentElement



getContentElementFromTreePath
public Element getContentElementFromTreePath(TreePath path)(Code)
Returns the content element of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the content element of the tree node.
See Also:   ItsNatTreeUI.getContentElementFromRow(int)



getHandleElementFromRow
public Element getHandleElementFromRow(int row)(Code)
Returns the handle element of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the handle element of the tree node at the specified position or null if the tree is empty or row is out of bounds.
See Also:   ItsNatTreeCellUI.getHandleElement
See Also:   
See Also:   org.itsnat.comp.ItsNatTreeStructure.getHandleElement(ItsNatTreeintElement)
See Also:   
See Also:   org.itsnat.core.domutil.ElementTreeNode.getHandleElement



getHandleElementFromTreePath
public Element getHandleElementFromTreePath(TreePath path)(Code)
Returns the handle element of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the handle element of the tree node.
See Also:   ItsNatTreeUI.getHandleElementFromRow(int)



getIconElementFromRow
public Element getIconElementFromRow(int row)(Code)
Returns the icon element of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the icon element of the tree node at the specified position or null if the tree is empty or row is out of bounds.
See Also:   ItsNatTreeCellUI.getIconElement
See Also:   
See Also:   org.itsnat.comp.ItsNatTreeStructure.getIconElement(ItsNatTreeintElement)
See Also:   
See Also:   org.itsnat.core.domutil.ElementTreeNode.getIconElement



getIconElementFromTreePath
public Element getIconElementFromTreePath(TreePath path)(Code)
Returns the icon element of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the icon element of the tree node.
See Also:   ItsNatTreeUI.getIconElementFromRow(int)



getItsNatTree
public ItsNatTree getItsNatTree()(Code)
Returns the associated component object. the component object.



getItsNatTreeCellUIFromNode
public ItsNatTreeCellUI getItsNatTreeCellUIFromNode(Node node)(Code)
Returns the object info of the tree node containing the specified node.
Parameters:
  node - the node to search for. the tree node containing the specified node. Null if not contained by this tree. This object is ever the same per tree node and may be used to save any context data.
See Also:   org.itsnat.core.domutil.ElementTree.getElementTreeNodeFromNode(Node)
See Also:   



getItsNatTreeCellUIFromRow
public ItsNatTreeCellUI getItsNatTreeCellUIFromRow(int row)(Code)
Returns the object info of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the object info of the tree node at the specified position or nullif the tree is empty or row is out of bounds. This object is ever the same per tree node and may be used to save any context data.
See Also:   org.itsnat.core.domutil.ElementTree.getElementTreeNodeFromRow(int)



getItsNatTreeCellUIFromTreePath
public ItsNatTreeCellUI getItsNatTreeCellUIFromTreePath(TreePath path)(Code)
Returns the object info of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the object info of the tree node.This object is ever the same per tree node and may be used to save any context data.
See Also:   ItsNatTreeUI.getItsNatTreeCellUIFromRow(int)



getLabelElementFromRow
public Element getLabelElementFromRow(int row)(Code)
Returns the label element of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the label element of the tree node at the specified position or null if the tree is empty or row is out of bounds.
See Also:   ItsNatTreeCellUI.getLabelElement
See Also:   
See Also:   org.itsnat.comp.ItsNatTreeStructure.getLabelElement(ItsNatTreeintElement)
See Also:   
See Also:   org.itsnat.core.domutil.ElementTreeNode.getLabelElement



getLabelElementFromTreePath
public Element getLabelElementFromTreePath(TreePath path)(Code)
Returns the label element of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the label element of the tree node.
See Also:   ItsNatTreeUI.getLabelElementFromRow(int)



getParentElementFromRow
public Element getParentElementFromRow(int row)(Code)
Returns the parent element of the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the parent element of the tree node at the specified position or null if the tree is empty or row is out of bounds.
See Also:   ItsNatTreeCellUI.getParentElement
See Also:   org.itsnat.core.domutil.ElementGroup.getParentElement



getParentElementFromTreePath
public Element getParentElementFromTreePath(TreePath path)(Code)
Returns the parent element of the tree node specified by the tree path.
Parameters:
  path - the tree node path. the parent element of the tree node.
See Also:   ItsNatTreeUI.getParentElementFromRow(int)



insertTreeNodeAt
public void insertTreeNodeAt(int index, TreePath parentPath)(Code)
Inserts a new child tree node at the specified position below the parent tree node specified by its path.
Parameters:
  index - 0 based index of the new tree node relative to the parent.
Parameters:
  parentPath - the path of the parent tree node.
See Also:   org.itsnat.core.domutil.ElementTreeNodeList.insertTreeNodeAt(intObject)
See Also:   



insertTreeNodeAt
public void insertTreeNodeAt(TreePath path)(Code)
Inserts a new child tree node at the position specified by its path.
Parameters:
  path - path of the new tree node.
See Also:   ItsNatTreeUI.insertTreeNodeAt(int,TreePath)



isUsePatternMarkupToRender
public boolean isUsePatternMarkupToRender()(Code)
Informs whether the original (saved as pattern) markup is used to render.

The default value is defined by org.itsnat.core.ItsNatDocument.isUsePatternMarkupToRender

true if the original markup is used.
See Also:   ItsNatTreeUI.setUsePatternMarkupToRender(boolean)



removeAllChildTreeNodes
public void removeAllChildTreeNodes(TreePath parentPath)(Code)
Removes all tree nodes below the specified parent tree node by its path.
Parameters:
  parentPath - the path of the parent tree node.



removeRootNode
public void removeRootNode()(Code)
Removes the current root tree node, if the tree is empty does nothing. If the tree is rootless the tree is completely removed.
See Also:   org.itsnat.core.domutil.ElementTree.removeRootNode



removeTreeNodeAt
public void removeTreeNodeAt(int index, TreePath parentPath)(Code)
Removes the child tree node specified by its index relative to the tree node parent specified by its path.
Parameters:
  index - 0 based index of the child tree node to remove.
Parameters:
  parentPath - the path of the parent tree node.
See Also:   org.itsnat.core.domutil.ElementTreeNodeList.removeTreeNodeAt(int)
See Also:   



removeTreeNodeAt
public void removeTreeNodeAt(TreePath path)(Code)
Removes the child tree node specified by its path.
Parameters:
  path - path of the tree node to remove.
See Also:   ItsNatTreeUI.removeTreeNodeAt(int,TreePath)
See Also:   



setTreeNodeValueAt
public void setTreeNodeValueAt(int index, TreePath parentPath, boolean hasFocus)(Code)
Renders the submitted data value of the child tree node specified by its index relative to the tree node parent specified by its path.
Parameters:
  index - 0 based index of the child tree node to render.
Parameters:
  parentPath - the path of the parent tree node.
Parameters:
  hasFocus - if this child tree node has the focus. Current ItsNat implementation ever passes false.
See Also:   org.itsnat.core.domutil.ElementTreeNode.setValue(Object)



setTreeNodeValueAt
public void setTreeNodeValueAt(TreePath path, boolean hasFocus)(Code)
Renders the submitted data value of the tree node specified by its path.
Parameters:
  path - path of the tree node.
Parameters:
  hasFocus - if this child tree node has the focus. Current ItsNat implementation ever passes false.
See Also:   ItsNatTreeUI.setTreeNodeValueAt(int,TreePath,boolean)
See Also:   



setUsePatternMarkupToRender
public void setUsePatternMarkupToRender(boolean value)(Code)
Sets whether the original (saved as pattern) markup is used to render.
Parameters:
  value - true to enable the use of original markup to render.
See Also:   ItsNatTreeUI.isUsePatternMarkupToRender()



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