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

All known Subclasses:   org.itsnat.impl.core.domutil.ElementTreeImpl,
ElementTree
public interface ElementTree extends ElementGroup(Code)
Represents a pattern based DOM tree with a removable root. This structure may be seen as a tree node list with none or only one tree node.

The starting point is a root DOM tree node, this node is saved as the pattern (really a deep clone). This pattern is used to recreate the root node (the root may be removed).

The initial root tree node may be initially removed or kept as is when this tree is created and attached to the underlying DOM.


author:
   Jose Maria Arranz Santamaria
See Also:   org.itsnat.core.ItsNatDocument.createElementTree(booleanElementbooleanElementTreeNodeStructureElementTreeNodeRenderer)




Method Summary
public  ElementTreeNodeaddRootNode()
     Adds a root tree node.
public  ElementTreeNodeaddRootNode(Object value)
     Adds a root tree node and renders the value using the current structure and renderer.
public  ElementTreeNodegetElementTreeNodeFromNode(Node node)
     Returns the tree node containing the specified node.
public  ElementTreeNodegetElementTreeNodeFromRow(int row)
     Returns the tree node at the specified row position seeing the tree as a list (root node is 0).
public  ElementTreeNodeRenderergetElementTreeNodeRenderer()
     Returns the current renderer defined in this tree.
public  ElementTreeNodeStructuregetElementTreeNodeStructure()
     Returns the current structure defined in this tree.
public  ElementTreeNodegetRootNode()
     Returns the root tree node.
public  ElementgetRootPatternElement()
     Returns the element used as a pattern.
public  booleanhasTreeNodeRoot()
     Informs whether the current tree has a root tree node (not empty).
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidremoveRootNode()
     Removes the current root tree node.
public  voidsetElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)
     Sets the renderer defined in this tree.
public  voidsetElementTreeNodeStructure(ElementTreeNodeStructure structure)
     Sets the structure defined in this tree.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.



Method Detail
addRootNode
public ElementTreeNode addRootNode()(Code)
Adds a root tree node. If the tree already has a root node an exception is thrown.

The new tree node uses the current structure and renderer of the tree.

the new root node.
See Also:   ElementTree.getRootNode()
See Also:   ElementTree.removeRootNode()
See Also:   



addRootNode
public ElementTreeNode addRootNode(Object value)(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. the new root node.
See Also:   ElementTree.addRootNode()
See Also:   ElementTree.getElementTreeNodeStructure()
See Also:   ElementTree.getElementTreeNodeRenderer()
See Also:   



getElementTreeNodeFromNode
public ElementTreeNode getElementTreeNodeFromNode(Node node)(Code)
Returns 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.



getElementTreeNodeFromRow
public ElementTreeNode getElementTreeNodeFromRow(int row)(Code)
Returns the tree node at the specified row position seeing the tree as a list (root node is 0).
Parameters:
  row - the row position. the tree node at the specified position or null if the tree is empty or row is out of bounds.



getElementTreeNodeRenderer
public ElementTreeNodeRenderer getElementTreeNodeRenderer()(Code)
Returns the current renderer defined in this tree. the current renderer.
See Also:   ElementTree.setElementTreeNodeRenderer(ElementTreeNodeRenderer)
See Also:   



getElementTreeNodeStructure
public ElementTreeNodeStructure getElementTreeNodeStructure()(Code)
Returns the current structure defined in this tree. the current structure.
See Also:   ElementTree.setElementTreeNodeStructure(ElementTreeNodeStructure)
See Also:   



getRootNode
public ElementTreeNode getRootNode()(Code)
Returns the root tree node. the root tree node or null if the tree is empty.
See Also:   ElementTree.addRootNode()
See Also:   ElementTree.removeRootNode()



getRootPatternElement
public Element getRootPatternElement()(Code)
Returns the element used as a pattern. This element is a clone of the original root node parent element used as a pattern. the pattern element.



hasTreeNodeRoot
public boolean hasTreeNodeRoot()(Code)
Informs whether the current tree has a root tree node (not empty). true if the tree has a root tree node.
See Also:   ElementTree.getRootNode()



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:   ElementTree.setUsePatternMarkupToRender(boolean)



removeRootNode
public void removeRootNode()(Code)
Removes the current root tree node. If the tree has no root does nothing.
See Also:   ElementTree.getRootNode()
See Also:   ElementTree.addRootNode()



setElementTreeNodeRenderer
public void setElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)(Code)
Sets the renderer defined in this tree.
Parameters:
  renderer - the new renderer.
See Also:   ElementTree.getElementTreeNodeRenderer()
See Also:   



setElementTreeNodeStructure
public void setElementTreeNodeStructure(ElementTreeNodeStructure structure)(Code)
Sets the structure defined in this tree.
Parameters:
  structure - the new structure.
See Also:   ElementTree.getElementTreeNodeStructure()
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:   ElementTree.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.