public interface ElementTreeNodeRenderer
ElementTreeNode objects to render the value
associated to the tree node.ElementTreeNode.setElementTreeNodeRenderer(ElementTreeNodeRenderer),
ElementGroupManager.createDefaultElementTreeNodeRenderer()| Modifier and Type | Method and Description |
|---|---|
void |
renderTreeNode(ElementTreeNode treeNode,
Object value,
Element labelElem,
boolean isNew)
Renders as markup the specified value into the specified tree node.
|
void |
unrenderTreeNode(ElementTreeNode treeNode,
Element labelElem)
Unrenders the markup of the specified tree node.
|
void renderTreeNode(ElementTreeNode treeNode, Object value, Element labelElem, boolean isNew)
Default implementation renders the specified value inside the first text node found below the label element.
treeNode - the target tree node.value - the value to render.labelElem - the label element to render the value into. Is a hint, if provided should be obtained by calling ElementTreeNode.getLabelElement().isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter.void unrenderTreeNode(ElementTreeNode treeNode, Element labelElem)
Default implementation does nothing.
treeNode - the target tree node.labelElem - the label element to render the value into. Is a hint, if provided should be obtained by calling ElementTreeNode.getLabelElement().Copyright © Innowhere Software, Jose Maria Arranz Santamaria.