public interface ItsNatTreeCellUI extends ItsNatUserData
This interface is the "componentized" version of
ElementTreeNode
and
follows a similar philosophy. The objective is similar to ItsNatListCellUI
applied to tree nodes. Child index, row, tree path, deep level etc are tolerant
to tree changes (are automatically updated).
ItsNatTreeUI.getItsNatTreeCellUIFromRow(int)
,
ItsNatTreeUI.getItsNatTreeCellUIFromNode(org.w3c.dom.Node)
Modifier and Type | Method and Description |
---|---|
void |
expand(boolean expandState)
Sets the new expand state.
|
int |
getChildCount()
Returns the number of direct child nodes of this node.
|
ItsNatTreeCellUI |
getChildItsNatTreeCellUIAt(int index)
Returns the direct child tree node UI at the specified position.
|
org.w3c.dom.Element |
getContentElement()
Returns the content element of this tree node.
|
int |
getDeepLevel()
Returns the deep (number of parents) of this node.
|
org.w3c.dom.Element |
getHandleElement()
Returns the handle element of this tree node.
|
org.w3c.dom.Element |
getIconElement()
Returns the icon element of this tree node.
|
int |
getIndex()
Returns the zero based index of this node as a child relative to the parent.
|
ItsNatTreeUI |
getItsNatTreeUI()
Returns the parent tree UI this object belongs to.
|
org.w3c.dom.Element |
getLabelElement()
Returns the label element of this tree node.
|
org.w3c.dom.Element |
getParentElement()
Returns the parent element containing this tree node.
|
int |
getRow()
Returns the row index of this node seeing the tree as a list. 0 if this node
is the root regardless this tree is rootless or not (if rootless never returns 0
because root node has not markup/tree node UI).
|
ItsNatTreeCellUI |
getTreeNodeUIParent()
Returns the parent tree node UI of this node.
|
ItsNatTreeCellUI[] |
getTreeNodeUIPath()
Returns an array with tree node UI objects from this node to the top most (usually the root).
|
javax.swing.tree.TreePath |
getTreePath()
Returns the tree path of this node.
|
boolean |
isExpanded()
Returns the current expand state.
|
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
ItsNatTreeUI getItsNatTreeUI()
ItsNatTreeCellUI getTreeNodeUIParent()
ItsNatTreeCellUI[] getTreeNodeUIPath()
Element at 0 is the top most node; if this tree is not rootless 0 element is the root, otherwise is the top most parent node containing this node.
org.w3c.dom.Element getParentElement()
ItsNatTreeUI.getParentElementFromRow(int)
org.w3c.dom.Element getContentElement()
ItsNatTreeUI.getContentElementFromRow(int)
org.w3c.dom.Element getHandleElement()
ItsNatTreeUI.getHandleElementFromRow(int)
org.w3c.dom.Element getIconElement()
ItsNatTreeUI.getIconElementFromRow(int)
org.w3c.dom.Element getLabelElement()
ItsNatTreeUI.getLabelElementFromRow(int)
int getIndex()
int getChildCount()
ItsNatTreeCellUI getChildItsNatTreeCellUIAt(int index)
index
- zero based index of the child node position.int getRow()
ItsNatTreeUI.getItsNatTreeCellUIFromRow(int)
void expand(boolean expandState)
Current implementation does not perform DOM changes and only serves to save expand state. Future versions might use this method to render visually the markup effect of the expansion/collapse.
Expand state of child or parent nodes is not affected.
expandState
- the new state.isExpanded()
,
ItsNatTree.expandNode(javax.swing.tree.TreePath)
,
ItsNatTree.collapseNode(javax.swing.tree.TreePath)
boolean isExpanded()
expand(boolean)
,
ItsNatTree.isExpandedNode(javax.swing.tree.TreePath)
int getDeepLevel()
javax.swing.tree.TreePath getTreePath()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.