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


org.itsnat.core.domutil.ElementTreeNode

All known Subclasses:   org.itsnat.impl.core.domutil.ElementTreeNodeImpl,
ElementTreeNode
public interface ElementTreeNode extends ElementGroup(Code)
Represents a pattern based DOM tree node. A tree node contains (may contain) a handle, an icon and a label elements (these three are the node "content"), and may have child nodes. The tree node structure is used as pattern to create child tree nodes (by using a deep clone), so all child tree nodes have the same structure (same as the pattern), unless there is one child node in markup.

This interface supports "out the box" the typical DOM tree node structure with handle, icon and label elements:

 <parent>
 <content><handle/><icon/><label>markup of label</label></content>
 <children>
 ...child tree nodes go here
 </children>
 </parent>
 

The label element is normally used to render below the value associated to node. The method ElementTreeNode.setValue(Object) is used to render this value, the structure and renderer objects are used to customize how and where this value is saved in the tree node beyond the default cases.

A pattern based DOM tree node ever works in "master" mode, see ElementListFree.isMaster .


author:
   Jose Maria Arranz Santamaria
See Also:   org.itsnat.core.ItsNatDocument.createElementTreeNode(org.w3c.dom.Elementboolean)
See Also:   




Method Summary
public  ElementgetChildListElement()
     Returns the parent element of the child tree nodes.
public  ElementTreeNodeListgetChildTreeNodeList()
     Returns the child tree node list of this tree node.
public  ElementgetContentElement()
     Returns the content element.
public  intgetDeepLevel()
     Returns the number of levels (parents) above.
public  ElementTreeNodegetElementTreeNodeFromNode(Node node)
     Returns this tree node or the tree node containing the specified node.
public  ElementTreeNodegetElementTreeNodeParent()
     Returns the parent tree node if exists.
public  ElementTreeNodeRenderergetElementTreeNodeRenderer()
     Returns the current renderer used by this tree node.
public  ElementTreeNodeStructuregetElementTreeNodeStructure()
     Returns the current structure used by this tree node.
public  ElementgetHandleElement()
     Returns the handle element.
public  ElementgetIconElement()
     Returns the icon element.
public  intgetIndex()
     Returns the index of this node as a child of its node parent.
public  DocumentFragmentgetLabelContentPatternFragment()
     Returns the pattern used to render values if ElementTreeNode.isUsePatternMarkupToRender() is true.
public  ElementgetLabelElement()
     Returns the label element.
public  ElementTreeNodegetNextSiblingTreeNode()
     Returns the tree node immediately following this tree node (same level).
public  ElementTreeNodegetNextTreeNode()
     Returns the next tree node in the logical order of the tree (seen as a list).
public  ElementTreeNodegetPreviousSiblingTreeNode()
     Returns the tree node immediately preceding this tree node (same level).
public  ElementTreeNodegetPreviousTreeNode()
     Returns the previous tree node in the logical order of the tree (seen as a list).
public  intgetRow()
     Returns the row index of this node seeing the tree as a list.
public  booleanisLeaf()
     Informs whether this node is a leaf, it does not contain child nodes.
public  booleanisTreeTable()
     Informs whether this node is part of a tree table.
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidsetElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)
     Sets the renderer used by this tree node.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.
public  voidsetValue(Object value)
     Renders the submitted value into the tree node markup using the current renderer.



Method Detail
getChildListElement
public Element getChildListElement()(Code)
Returns the parent element of the child tree nodes. The current structure is used to obtain this element. the parent of child nodes.
See Also:   ElementTreeNode.getElementTreeNodeStructure()
See Also:   
See Also:   ElementTreeNodeStructure.getChildListElement(ElementTreeNodeElement)



getChildTreeNodeList
public ElementTreeNodeList getChildTreeNodeList()(Code)
Returns the child tree node list of this tree node. the child tree node list



getContentElement
public Element getContentElement()(Code)
Returns the content element. This element usually contains the handle, icon and label elements. The current structure is used to obtain this element. the content element.
See Also:   ElementTreeNode.getElementTreeNodeStructure()
See Also:   ElementTreeNodeStructure.getContentElement(ElementTreeNodeElement)



getDeepLevel
public int getDeepLevel()(Code)
Returns the number of levels (parents) above. the number of levels, 0 if root or a child node of the root list in a rootless tree.



getElementTreeNodeFromNode
public ElementTreeNode getElementTreeNodeFromNode(Node node)(Code)
Returns this tree node or 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 node or child tree nodes.



getElementTreeNodeParent
public ElementTreeNode getElementTreeNodeParent()(Code)
Returns the parent tree node if exists. the parent tree node, null if this node is root or rootless tree.



getElementTreeNodeRenderer
public ElementTreeNodeRenderer getElementTreeNodeRenderer()(Code)
Returns the current renderer used by this tree node. the current renderer.



getElementTreeNodeStructure
public ElementTreeNodeStructure getElementTreeNodeStructure()(Code)
Returns the current structure used by this tree node. the current structure.



getHandleElement
public Element getHandleElement()(Code)
Returns the handle element. The current structure is used to obtain this element. the handle element.
See Also:   ElementTreeNode.getElementTreeNodeStructure()
See Also:   
See Also:   ElementTreeNodeStructure.getHandleElement(ElementTreeNodeElement)



getIconElement
public Element getIconElement()(Code)
Returns the icon element. The current structure is used to obtain this element. the icon element.
See Also:   ElementTreeNode.getElementTreeNodeStructure()
See Also:   
See Also:   ElementTreeNodeStructure.getIconElement(ElementTreeNodeElement)



getIndex
public int getIndex()(Code)
Returns the index of this node as a child of its node parent. the position as child, -1 if root.
See Also:   ElementTreeNode.getElementTreeNodeParent()



getLabelContentPatternFragment
public DocumentFragment getLabelContentPatternFragment()(Code)
Returns the pattern used to render values if ElementTreeNode.isUsePatternMarkupToRender() is true. the pattern used to render values.



getLabelElement
public Element getLabelElement()(Code)
Returns the label element. The current structure is used to obtain this element. the label element.
See Also:   ElementTreeNode.getElementTreeNodeStructure()
See Also:   
See Also:   ElementTreeNodeStructure.getLabelElement(ElementTreeNodeElement)



getNextSiblingTreeNode
public ElementTreeNode getNextSiblingTreeNode()(Code)
Returns the tree node immediately following this tree node (same level). the next sibling or null if there is no such tree node.



getNextTreeNode
public ElementTreeNode getNextTreeNode()(Code)
Returns the next tree node in the logical order of the tree (seen as a list). the next tree node.



getPreviousSiblingTreeNode
public ElementTreeNode getPreviousSiblingTreeNode()(Code)
Returns the tree node immediately preceding this tree node (same level). the previous sibling or null if there is no such tree node.



getPreviousTreeNode
public ElementTreeNode getPreviousTreeNode()(Code)
Returns the previous tree node in the logical order of the tree (seen as a list). the previous tree node.



getRow
public int getRow()(Code)
Returns the row index of this node seeing the tree as a list. the row index, 0 if root.



isLeaf
public boolean isLeaf()(Code)
Informs whether this node is a leaf, it does not contain child nodes. true if this node is a leaf.



isTreeTable
public boolean isTreeTable()(Code)
Informs whether this node is part of a tree table. true if this node is part of a tree table.



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

The default value is defined by the parent tree node list if exists or by org.itsnat.core.ItsNatDocument.isUsePatternMarkupToRender

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



setElementTreeNodeRenderer
public void setElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)(Code)
Sets the renderer used by this tree node.
Parameters:
  renderer - the new renderer.



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:   ElementTreeNode.isUsePatternMarkupToRender()



setValue
public void setValue(Object value)(Code)
Renders the submitted value into the tree node markup using the current renderer.
Parameters:
  value - the value to render.
See Also:   ElementTreeNode.getElementTreeNodeRenderer()
See Also:   
See Also:   ElementTreeNodeRenderer.renderTreeNode(ElementTreeNodeObjectElementboolean)
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.