A tree display element for viewing and editing a hierarchy of objects.(c) SAP AG 2003-2006. All rights reserved. Gets or sets a callback for calculating the effect to use during a drag and drop operation.The callback a function with the following signature: <code>effect = calcDragEffect(sourceId, targetId, event)</code> Gets or sets a predicate for testing whether a specified node can be removed.The predicate is either a Boolean <code>true/<code>false</code></code> value, or a function with the following signature: <code>Boolean = canRemoveNode(id)</code> Gets or sets a predicate for testing whether a specified node can be renamed.The predicate is either a Boolean <code>true/<code>false</code></code> value, or a function with the following signature: <code>Boolean = canRenameNode(id)</code> Gets or sets the control styling glyph. Gets or sets the tree data provider.The data provider should be an object that implements the following interface <table class="BOTH"><tr><td class="H V">Method </td><td class=H>Returns </td><td class=H>Description </td></tr><tr><td class=V>getRoot() </td><td><code>node</code> </td><td>Returns the root node </td></tr><tr><td class=V>getNode(id) </td><td><code>node</code> </td><td>Returns a specified node </td></tr><tr><td class=V>getChildNodes(id) </td><td><code>node[]</code> </td><td>Returns an array of the child nodes under a specified node </td></tr><tr><td class=V>getNodePath(id) </td><td>String[] </td><td>Optional. Returns the ancestors path leading to and including the specified node </td></tr><tr><td class=V>checkNode(id,flag) </td><td>void </td><td>Optional. Checks or unchecks a given node. </td></tr></table> Where <code>node</code> is an object with the following members: <table class="BOTH"><tr><td class="H V">Member </td><td class=H>Type </td><td class=H>Description </td></tr><tr><td class=V>id </td><td>String </td><td>Node id (must be unique) </td></tr><tr><td class=V>name </td><td>String </td><td>Node name </td></tr><tr><td class=V>hint </td><td>String </td><td>Optional. Node tooltip </td></tr><tr><td class=V>size </td><td>String </td><td>Optional. Number of childs nodes </td></tr><tr><td class=V>icon </td><td>String </td><td>Optional. Node icon </td></tr><tr><td class=V>mode </td><td>Enum </td><td>Optional. Node selection mode: TREEVIEW_NORMAL(default), TREEVIEW_CHECK, TREEVIEW_RADIO, TREEVIEW_CASCADE </td></tr><tr><td class=V>check </td><td>Boolean </td><td>Optional. Node check flag: <code>true</code> = node checked, <code>false</code> = node unchecked, <code>undefined</code> = node in mixed state </td></tr></table> Gets the root node in the tree. Gets the Id of the currently selected node. Gets or sets whether to show the root node. Gets or sets the action to perform when the mouse wheel is rolled over this element (scroll|select|none). Checks or unchecks a given node.Id of node to check/uncheck.<code>true</code> = node checked, <code>false</code> = node unchecked, <code>undefined</code> = node in mixed state. Clears the treeview. Collapses the given node.Id of node to collapse. Ends a node rename operation.Indicates whether to commit or cancel the rename operation. Expands the given node.Id of node to expand. Expands the entire tree. Returns the node object that encloses the given HTML element.An HTML element.The enclosing node object, if any. Returns the node object with the given Id.Id of requested node.The requested node object. Processes the given hotkey and executes the corresponding action on the treeview.The hotkey code.Returns true if the hotkey was consumed, false otherwise. Notifies that a tree node has been relocated.Id of the relocated node.Id of the old parent node (<code>null</code> in case the node was inserted).Id of the new parent node (<code>null</code> in case the node was removed). Notifies that a node was renamed.Id of renamed node.The new name of the node. Removes the given node.Id of node to delete. Resets the treeview and displays the root node. Selects the first node in the tree (the root node).The selected node object. Selects the specified node and scrolls it into view.Id of node to select.The selected node object. Selects the last node in the tree (in DFS order).The selected node object. Selects the next node in the tree (the first visible node that follows the currently selected node in DFS order).The selected node object. Selects the specified node (assuming its parent has been already expanded).Id of node to select.The selected node object. Selects the specified node, expanding any of its ancestors as needed.Id of node to select.The selected node object. Selects the previous node in the tree (the first visible node that precedes the currently selected node in DFS order).The selected node object. Starts a node rename operation.Id of node to rename. Toggles the given node between !collapsed and <code>expanded</code> states.Id of node to toggle. Unselects the current node, if any. Fires whenever a node is checked or unchecked.The node Id.<code>true</code> = node checked, <code>false</code> = node unchecked, <code>undefined</code> = node in mixed state. Fires whenever whenever the user starts dragging a node.The node Id.Set this parameter to a valid DND object to start the drag and drop operation. Fires when the user drops a node on a valid target.The DND object describing the drop target. Fires whenever a node is right-clicked by the user.The node Id. Fires whenever a node is removed.The node Id. Fires whenever a node is renamed.The node Id.The new node name. Fires whenever a node is selected by the user.The node Id.Indicates whether this is a strong select.