public interface ItsNatTreeUI extends ItsNatElementComponentUI
Tree nodes are managed using the current tree structure and renderer.
Current implementation uses the tree data model when necessary and relays heavily on
ElementTree
and related interfaces/objects.
If the tree is visually "rootless" there is no markup to the root but the root
is ever counted for indexing as row 0 (including when there is no root in data model).
Method calls like getParentElementFromRow(0)
returns null.
This guaranties same row values for trees visually "rootless" and
with visible root.
Current implementation does not use the data model on methods not containing
TreePath
parameters.
ItsNatTree.getItsNatTreeUI()
,
ItsNatTree.getItsNatTreeCellRenderer()
,
ItsNatTree.getItsNatTreeStructure()
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getContentElementFromRow(int row)
Returns the content element of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
org.w3c.dom.Element |
getContentElementFromTreePath(javax.swing.tree.TreePath path)
Returns the content element of the tree node specified by the tree path.
|
org.w3c.dom.Element |
getHandleElementFromRow(int row)
Returns the handle element of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
org.w3c.dom.Element |
getHandleElementFromTreePath(javax.swing.tree.TreePath path)
Returns the handle element of the tree node specified by the tree path.
|
org.w3c.dom.Element |
getIconElementFromRow(int row)
Returns the icon element of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
org.w3c.dom.Element |
getIconElementFromTreePath(javax.swing.tree.TreePath path)
Returns the icon element of the tree node specified by the tree path.
|
ItsNatTree |
getItsNatTree()
Returns the associated component object.
|
ItsNatTreeCellUI |
getItsNatTreeCellUIFromNode(org.w3c.dom.Node node)
Returns the object info of the tree node containing the specified node.
|
ItsNatTreeCellUI |
getItsNatTreeCellUIFromRow(int row)
Returns the object info of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
ItsNatTreeCellUI |
getItsNatTreeCellUIFromTreePath(javax.swing.tree.TreePath path)
Returns the object info of the tree node specified by the tree path.
|
org.w3c.dom.Element |
getLabelElementFromRow(int row)
Returns the label element of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
org.w3c.dom.Element |
getLabelElementFromTreePath(javax.swing.tree.TreePath path)
Returns the label element of the tree node specified by the tree path.
|
org.w3c.dom.Element |
getParentElementFromRow(int row)
Returns the parent element of the tree node at the specified row position seeing the tree as a list (root node is 0).
|
org.w3c.dom.Element |
getParentElementFromTreePath(javax.swing.tree.TreePath path)
Returns the parent element of the tree node specified by the tree path.
|
int |
getRow(int index,
javax.swing.tree.TreePath parentPath)
Returns the row index of the child tree node at the specified position below the parent tree node
specified by its path.
|
int |
getRow(javax.swing.tree.TreePath path)
Returns the row index of the specified tree node.
|
int |
getRowCount()
Returns the number of rows in the tree.
|
int |
getRowCount(int index,
javax.swing.tree.TreePath parentPath)
Returns the number of rows contained in the child tree node at the specified position below the parent tree node
specified by its path.
|
int |
getRowCount(javax.swing.tree.TreePath path)
Returns the number of rows contained below the specified node including itself.
|
boolean |
isUsePatternMarkupToRender()
Informs whether the original (saved as pattern) markup is used to render.
|
void |
setUsePatternMarkupToRender(boolean value)
Sets whether the original (saved as pattern) markup is used to render.
|
getItsNatElementComponent
getItsNatComponent
ItsNatTree getItsNatTree()
int getRowCount()
int getRow(javax.swing.tree.TreePath path)
path
- the path of the tree node.int getRowCount(javax.swing.tree.TreePath path)
This method uses the data model (to locate the specified tree node) but can be called including when the child nodes are missing in the data model (for instance were removed before).
path
- the path of the tree node.int getRow(int index, javax.swing.tree.TreePath parentPath)
This method uses the data model (to locate the parent) but can be called including when the specified child node is missing in the data model (for instance was removed before).
index
- 0 based index of the child tree node relative to the parent.parentPath
- the path of the parent tree node.int getRowCount(int index, javax.swing.tree.TreePath parentPath)
This method uses the data model (to locate the parent) but can be called including when the specified child node is missing in the data model (for instance was removed before).
index
- 0 based index of the child tree node relative to the parent.parentPath
- the path of the parent tree node.org.w3c.dom.Element getParentElementFromRow(int row)
row
- the row position.ItsNatTreeCellUI.getParentElement()
,
ElementGroup.getParentElement()
org.w3c.dom.Element getContentElementFromRow(int row)
row
- the row position.ItsNatTreeCellUI.getContentElement()
,
ItsNatTreeStructure.getContentElement(ItsNatTree,int,Element)
,
ElementTreeNode.getContentElement()
org.w3c.dom.Element getHandleElementFromRow(int row)
row
- the row position.ItsNatTreeCellUI.getHandleElement()
,
ItsNatTreeStructure.getHandleElement(ItsNatTree,int,Element)
,
ElementTreeNode.getHandleElement()
org.w3c.dom.Element getIconElementFromRow(int row)
row
- the row position.ItsNatTreeCellUI.getIconElement()
,
ItsNatTreeStructure.getIconElement(ItsNatTree,int,Element)
,
ElementTreeNode.getIconElement()
org.w3c.dom.Element getLabelElementFromRow(int row)
row
- the row position.ItsNatTreeCellUI.getLabelElement()
,
ItsNatTreeStructure.getLabelElement(ItsNatTree,int,Element)
,
ElementTreeNode.getLabelElement()
org.w3c.dom.Element getParentElementFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getParentElementFromRow(int)
org.w3c.dom.Element getContentElementFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getContentElementFromRow(int)
org.w3c.dom.Element getHandleElementFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getHandleElementFromRow(int)
org.w3c.dom.Element getIconElementFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getIconElementFromRow(int)
org.w3c.dom.Element getLabelElementFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getLabelElementFromRow(int)
ItsNatTreeCellUI getItsNatTreeCellUIFromRow(int row)
row
- the row position.ElementTree.getElementTreeNodeFromRow(int)
ItsNatTreeCellUI getItsNatTreeCellUIFromTreePath(javax.swing.tree.TreePath path)
path
- the tree node path.getItsNatTreeCellUIFromRow(int)
ItsNatTreeCellUI getItsNatTreeCellUIFromNode(org.w3c.dom.Node node)
node
- the node to search for.ElementTree.getElementTreeNodeFromNode(Node)
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.