public interface ItsNatTreeCellRenderer
ItsNatComponentManager.createDefaultItsNatTreeCellRenderer()
,
ItsNatTree.getItsNatTreeCellRenderer()
,
ItsNatTree.setItsNatTreeCellRenderer(ItsNatTreeCellRenderer)
Modifier and Type | Method and Description |
---|---|
void |
renderTreeCell(ItsNatTree tree,
int row,
java.lang.Object value,
boolean isSelected,
boolean isExpanded,
boolean isLeaf,
boolean hasFocus,
org.w3c.dom.Element treeNodeLabelElem,
boolean isNew)
Renders as markup the specified tree node value into the specified element, usually
as a text node.
|
void |
unrenderTreeCell(ItsNatTree tree,
int row,
org.w3c.dom.Element treeNodeLabelElem)
Unrenders the markup of the specified tree node.
|
void renderTreeCell(ItsNatTree tree, int row, java.lang.Object value, boolean isSelected, boolean isExpanded, boolean isLeaf, boolean hasFocus, org.w3c.dom.Element treeNodeLabelElem, boolean isNew)
Default implementation delegates to the default ElementRenderer
.
Default implementation ignores isSelected
, isExpanded
, isLeaf
and hasFocus
(current implementation of ItsNat trees does not handle focus on tree nodes, ever is false).
tree
- the tree component, may be used to provide contextual information. Default implementation ignores it.row
- the tree node row (seeing the tree as a list).value
- the value to render.isSelected
- true if the tree node is selected.isExpanded
- true if the tree node is expanded.isLeaf
- true if the tree node is a leaf.hasFocus
- true if the tree node has the focus.treeNodeLabelElem
- the tree node label element to render the value into. Is a hint, if provided should be obtained by calling tree.getItsNatTreeUI().getLabelElementFromRow(row)
.isNew
- true if this is the first time the markup is rendered. Default implementation ignores this parameter.void unrenderTreeCell(ItsNatTree tree, int row, org.w3c.dom.Element treeNodeLabelElem)
Default implementation does nothing.
tree
- the tree component, may be used to provide contextual information. Default implementation ignores it.row
- the tree node row (seeing the tree as a list).treeNodeLabelElem
- the tree node label element to render the value into. Is a hint, if provided should be obtained by calling tree.getItsNatTreeUI().getLabelElementFromRow(row)
.Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.