| org.itsnat.comp.ItsNatTreeCellRenderer
All known Subclasses: org.itsnat.feashow.MainTreeRenderer, org.itsnat.impl.comp.ItsNatTreeCellRendererDefaultImpl, org.itsnat.feashow.features.components.trees.TreeTableItemRenderer,
Method Summary | |
public void | renderTreeCell(ItsNatTree tree, int row, Object value, boolean isSelected, boolean isExpanded, boolean isLeaf, boolean hasFocus, Element treeNodeLabelElem, boolean isNew) Renders as markup the specified tree node value into the specified element, usually
as a text node.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementRenderer .
Default implementation ignores isSelected , isExpanded , isLeaf
and hasFocus (current implementation of ItsNat trees does not handle focus on tree nodes, ever is false).
Parameters: tree - the tree component, may be used to provide contextual information. | public void | unrenderTreeCell(ItsNatTree tree, int row, Element treeNodeLabelElem) Unrenders the markup of the specified tree node. |
renderTreeCell | public void renderTreeCell(ItsNatTree tree, int row, Object value, boolean isSelected, boolean isExpanded, boolean isLeaf, boolean hasFocus, Element treeNodeLabelElem, boolean isNew)(Code) | | Renders as markup the specified tree node value into the specified element, usually
as a text node.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementRenderer .
Default implementation ignores isSelected , isExpanded , isLeaf
and hasFocus (current implementation of ItsNat trees does not handle focus on tree nodes, ever is false).
Parameters: tree - the tree component, may be used to provide contextual information. Default implementation ignores it. Parameters: row - the tree node row (seeing the tree as a list). Parameters: value - the value to render. Parameters: isSelected - true if the tree node is selected. Parameters: isExpanded - true if the tree node is expanded. Parameters: isLeaf - true if the tree node is a leaf. Parameters: hasFocus - true if the tree node has the focus. Parameters: 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) . Parameters: isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter. |
unrenderTreeCell | public void unrenderTreeCell(ItsNatTree tree, int row, Element treeNodeLabelElem)(Code) | | Unrenders the markup of the specified tree node. This method is called before the markup
is removed.
Default implementation does nothing.
Parameters: tree - the tree component, may be used to provide contextual information. Default implementation ignores it. Parameters: row - the tree node row (seeing the tree as a list). Parameters: 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) . |
|
|