public interface ElementTree extends ElementGroup
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.
ElementGroupManager.createElementTree(boolean,Element,boolean,ElementTreeNodeStructure,ElementTreeNodeRenderer)
Modifier and Type | Method and Description |
---|---|
ElementTreeNode |
addRootNode()
Adds a root tree node.
|
ElementTreeNode |
addRootNode(java.lang.Object value)
Adds a root tree node and renders the value using the
current structure and renderer.
|
ElementTreeNode |
getElementTreeNodeFromNode(org.w3c.dom.Node node)
Returns the tree node containing the specified node.
|
ElementTreeNode |
getElementTreeNodeFromRow(int row)
Returns the tree node at the specified row position seeing the tree as a list (root node is 0).
|
ElementTreeNodeRenderer |
getElementTreeNodeRenderer()
Returns the current renderer defined in this tree.
|
ElementTreeNodeStructure |
getElementTreeNodeStructure()
Returns the current structure defined in this tree.
|
ElementTreeNode |
getRootNode()
Returns the root tree node.
|
org.w3c.dom.Element |
getRootPatternElement()
Returns the element used as a pattern.
|
int |
getRowCount()
Returns the number of rows in the tree.
|
boolean |
hasTreeNodeRoot()
Informs whether the current tree has a root tree node (not empty).
|
boolean |
isUsePatternMarkupToRender()
Informs whether the original (saved as pattern) markup is used to render.
|
void |
removeRootNode()
Removes the current root tree node.
|
void |
setElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)
Sets the renderer defined in this tree.
|
void |
setElementTreeNodeStructure(ElementTreeNodeStructure structure)
Sets the structure defined in this tree.
|
void |
setUsePatternMarkupToRender(boolean value)
Sets whether the original (saved as pattern) markup is used to render.
|
getItsNatDocument, getParentElement
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
ElementTreeNodeStructure getElementTreeNodeStructure()
setElementTreeNodeStructure(ElementTreeNodeStructure)
void setElementTreeNodeStructure(ElementTreeNodeStructure structure)
structure
- the new structure.getElementTreeNodeStructure()
ElementTreeNodeRenderer getElementTreeNodeRenderer()
setElementTreeNodeRenderer(ElementTreeNodeRenderer)
void setElementTreeNodeRenderer(ElementTreeNodeRenderer renderer)
renderer
- the new renderer.getElementTreeNodeRenderer()
org.w3c.dom.Element getRootPatternElement()
int getRowCount()
boolean hasTreeNodeRoot()
getRootNode()
ElementTreeNode getRootNode()
addRootNode()
,
removeRootNode()
ElementTreeNode addRootNode()
The new tree node uses the current structure and renderer of the tree.
getRootNode()
,
removeRootNode()
ElementTreeNode addRootNode(java.lang.Object value)
addRootNode()
,
getElementTreeNodeStructure()
,
getElementTreeNodeRenderer()
void removeRootNode()
getRootNode()
,
addRootNode()
ElementTreeNode getElementTreeNodeFromRow(int row)
row
- the row position.ElementTreeNode getElementTreeNodeFromNode(org.w3c.dom.Node node)
node
- the node to search for.boolean isUsePatternMarkupToRender()
The default value is defined by ItsNatDocument.isUsePatternMarkupToRender()
setUsePatternMarkupToRender(boolean)
void setUsePatternMarkupToRender(boolean value)
value
- true to enable the use of original markup to render.isUsePatternMarkupToRender()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.