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.
insertTreeNodeAt(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 boolean
isEmpty() Informs whether the tree node list is empty.
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.
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.
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.
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()