Class zwt.ui.tree.TreeNodeRenderer
Extends
zwt.Object.
A tree node renderer is used to render the content of the nodes in a tree.
This default implementation simply serialize the node object into a string value.
Defined in: TreeNodeRenderer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a tree node renderer.
|
Method Attributes | Method Name and Description |
---|---|
getNodeElement(zwt_ui_tree_TreeNode_node)
Return the rendered element that should be displayed in a node element in the tree.
|
|
getNodeStyle(zwt_ui_tree_TreeNode_node)
Return the style that should be applied to the node element in the tree.
|
Class Detail
zwt.ui.tree.TreeNodeRenderer()
Construct a tree node renderer.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- See:
- zwt.ui.tree.Tree
Method Detail
{Element}
getNodeElement(zwt_ui_tree_TreeNode_node)
Return the rendered element that should be displayed in a node element in the tree.
- Parameters:
- {zwt.ui.tree.TreeNode} zwt_ui_tree_TreeNode_node
- The tree node object
- Returns:
- The element to display
{Element}
getNodeStyle(zwt_ui_tree_TreeNode_node)
Return the style that should be applied to the node element in the tree.
- Parameters:
- {zwt.ui.tree.TreeNode} zwt_ui_tree_TreeNode_node
- The tree node object
- Returns:
- The style to apply