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.
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.
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()