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

All known Subclasses:   org.itsnat.impl.core.domutil.ElementTreeNodeListImpl,
ElementTreeNodeList
public interface ElementTreeNodeList extends ElementGroup(Code)
Represents a pattern based DOM tree node list.

The starting point may be a tree node list with almost a child tree node, this first child element is saved as the pattern (really a deep clone). If the list is initially empty the pattern used is the pattern of the parent tree node. New child tree nodes in the list are created using this pattern. The initial tree node list (including the pattern) may be initially cleared or kept as is when this object is created and attached to the underlying DOM list.


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




Method Summary
public  ElementTreeNodeaddTreeNode()
     Adds a new child tree node at the end of the list using the pattern (the new tree node markup is a clone).
public  ElementTreeNodeaddTreeNode(Object value)
     Adds a new child tree node at the end of the list and renders the specified value using the current structure and renderer.
public  ElementgetChildPatternElement()
     Returns the element used as a pattern.
public  ElementTreeNodegetElementTreeNodeFromNode(Node node)
     Returns the tree node containing the specified node.
public  ElementTreeNodeRenderergetElementTreeNodeRenderer()
     Returns the current renderer defined in this tree node list.
public  ElementTreeNodeStructuregetElementTreeNodeStructure()
     Returns the current structure defined in this tree node list.
public  ElementTreeNodegetFirstTreeNode()
     Returns the first child tree node (position 0).
public  ElementTreeNodegetLastTreeNode()
     Returns the last child tree node (position getLength() - 1).
public  intgetLength()
     Returns the number of child tree nodes in the list.
public  ElementTreeNodegetTreeNodeAt(int index)
     Returns the tree node at the specified index.
Parameters:
  index - index of the tree node to search.
public  ElementTreeNode[]getTreeNodes()
     Returns the tree node list as an array.
public  ElementTreeNodeinsertTreeNodeAt(int index)
     Inserts a new child tree node at the specified position using the pattern (the new tree node markup is a clone).

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


Parameters:
  index - index of the new tree node.
public  ElementTreeNodeinsertTreeNodeAt(int index, Object value)
     Inserts a new child tree node at the specified position and renders the specified value using the current structure and renderer.
Parameters:
  index - index of the tree node.
public  booleanisEmpty()
     Informs whether the tree node list is empty.
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidremoveAllTreeNodes()
     Removes all tree nodes.
public  ElementTreeNoderemoveTreeNodeAt(int index)
     Removes the specified tree node.
Parameters:
  index - index of the child tree node to remove.
public  voidremoveTreeNodeRange(int fromIndex, int toIndex)
     Removes the tree nodes between the specified indexes.
public  voidsetElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)
     Sets the renderer defined in this tree node list.
public  voidsetElementTreeNodeStructure(ElementTreeNodeStructure structure)
     Sets the structure defined in this tree node list.
public  voidsetLength(int len)
     Increases or shrinks the list to fit the new size.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.



Method Detail
addTreeNode
public ElementTreeNode addTreeNode()(Code)
Adds a new child tree node at the end of the list using the pattern (the new tree node markup is a clone).

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

the new tree node.
See Also:   ElementTreeNodeList.addTreeNode(Object)
See Also:   



addTreeNode
public ElementTreeNode addTreeNode(Object value)(Code)
Adds a new child tree node at the end of the list and renders the specified value using the current structure and renderer.
Parameters:
  value - the value to render. the new tree node.
See Also:   ElementTreeNodeList.addTreeNode()
See Also:   ElementTreeNodeList.getElementTreeNodeStructure()
See Also:   ElementTreeNodeList.getElementTreeNodeRenderer()
See Also:   



getChildPatternElement
public Element getChildPatternElement()(Code)
Returns the element used as a pattern. This element is a clone of the original first child tree node (if the pattern was obtained with). the pattern element.



getElementTreeNodeFromNode
public ElementTreeNode getElementTreeNodeFromNode(Node node)(Code)
Returns the tree node containing the specified node. The search is performed in the full subtree, so the returned tree node may not be a direct child node (may be a tree node child of a tree node list child and so on).
Parameters:
  node - the node to search for. the tree node containing the specified node. Null if this node is not contained by the list.



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



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



getFirstTreeNode
public ElementTreeNode getFirstTreeNode()(Code)
Returns the first child tree node (position 0). the first child tree node or null is the list is empty.



getLastTreeNode
public ElementTreeNode getLastTreeNode()(Code)
Returns the last child tree node (position getLength() - 1). the last child tree node or null is the list is empty.



getLength
public int getLength()(Code)
Returns the number of child tree nodes in the list. the list size.
See Also:   ElementTreeNodeList.setLength(int)



getTreeNodeAt
public ElementTreeNode getTreeNodeAt(int index)(Code)
Returns the tree node at the specified index.
Parameters:
  index - index of the tree node to search. the tree node in this position or null if index is out of range.



getTreeNodes
public ElementTreeNode[] getTreeNodes()(Code)
Returns the tree node list as an array. the tree node array.



insertTreeNodeAt
public ElementTreeNode insertTreeNodeAt(int index)(Code)
Inserts a new child tree node at the specified position using the pattern (the new tree node markup is a clone).

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


Parameters:
  index - index of the new tree node. the new tree node.
See Also:   ElementTreeNodeList.insertTreeNodeAt(int,Object)



insertTreeNodeAt
public ElementTreeNode insertTreeNodeAt(int index, Object value)(Code)
Inserts a new child tree node at the specified position and renders the specified value using the current structure and renderer.
Parameters:
  index - index of the tree node.
Parameters:
  value - the value to render. the new tree node.
See Also:   ElementTreeNodeList.insertTreeNodeAt(int)
See Also:   ElementTreeNodeList.getElementTreeNodeStructure()
See Also:   ElementTreeNodeList.getElementTreeNodeRenderer()
See Also:   



isEmpty
public boolean isEmpty()(Code)
Informs whether the tree node list is empty. true if the tree node list is empty.



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 if exists or by org.itsnat.core.ItsNatDocument.isUsePatternMarkupToRender

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



removeAllTreeNodes
public void removeAllTreeNodes()(Code)
Removes all tree nodes. The tree node list is now empty.



removeTreeNodeAt
public ElementTreeNode removeTreeNodeAt(int index)(Code)
Removes the specified tree node.
Parameters:
  index - index of the child tree node to remove. the removed tree node or null if index is out of bounds.



removeTreeNodeRange
public void removeTreeNodeRange(int fromIndex, int toIndex)(Code)
Removes the tree nodes between the specified indexes.
Parameters:
  fromIndex - low index (inclusive).
Parameters:
  toIndex - high index (inclusive).



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



setElementTreeNodeStructure
public void setElementTreeNodeStructure(ElementTreeNodeStructure structure)(Code)
Sets the structure defined in this tree node list.
Parameters:
  structure - the new structure.
See Also:   ElementTreeNodeList.getElementTreeNodeStructure()
See Also:   



setLength
public void setLength(int len)(Code)
Increases or shrinks the list to fit the new size.

If the new size is bigger new tree nodes are added at the end, if the size is lower tail tree nodes are removed.


Parameters:
  len - the new length.
See Also:   ElementTreeNodeList.getLength()
See Also:   ElementTreeNodeList.addTreeNode()
See Also:   ElementTreeNodeList.removeTreeNodeAt(int)



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:   ElementTreeNodeList.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.