Expands a specified path in this TreePanel. A path can be retrieved from a node with
Node.getPath Parameters: path - the path Parameters: cb - the callback to call when the expand is complete
Return an array of checked TreeNodes starting from the specified startNode.
Parameters: startNode - the node to start from array of checked nodes, empty array if no nodes are checked
Selects the node in this tree at the specified path. A path can be retrieved from a node with
Node.getPath .
Parameters: path - the path Parameters: cb - the callback to call when the selection is complete
True to enable animated expand/collapse. Defaults to true.
Parameters: animate - true to enable enimation. throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True to register this container with ScrollManager. Doing so provides automatic scrolling
of overflow regions in the page during drag operations. Defaults to false.
Parameters: containerScroll - true to register this container with ScrollManager throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True if the tree should only allow append drops (use for trees which are sorted).
Parameters: ddAppendOnly - true to allow only append drops throws: IllegalStateException - this property cannot be changed after the Component has been rendered
The DD group this TreePanel belongs to (defaults to 'TreeDD').
Parameters: ddGroup - the DD group throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True to enable body scrolling
Parameters: ddScroll - true to enable body scrolling. throws: IllegalStateException - this property cannot be changed after the Component has been rendered
Custom config to pass to the
TreeDropZone instance.
Parameters: dropConfig - the drop config throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True to enable drag and drop.
Parameters: enableDD - true to enable drag and drop throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True to enable just drag.
Parameters: enableDrag - true to enable just drag throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True to enable just drop.
Parameters: enableDrop - true to enable just drop throws: IllegalStateException - this property cannot be changed after the Component has been rendered
The color of the node highlight (defaults to C3DAF9).
Parameters: hlColor - the color of the node highlight throws: IllegalStateException - this property cannot be changed after the Component has been rendered
False to disable node highlight on drop.
Parameters: hlDrop - false to disable drop drop highlight throws: IllegalStateException - this property cannot be changed after the Component has been rendered
False to disable tree lines (defaults to true).
Parameters: lines - false to disable tree lines throws: IllegalStateException - this property cannot be changed after the Component has been rendered
A TreeLoader for use with this TreePanel.
Parameters: loader - the tree loader throws: IllegalStateException - this property cannot be changed after the Component has been rendered
setPathSeparator
native public void setPathSeparator(String separator)(Code)
Set the token used to separate sub-paths in path strings (defaults to '/').
Parameters: separator - the path separator
False to hide the root node (defaults to true).
Parameters: rootVisible - false to hide the root node throws: IllegalStateException - this property cannot be changed after the Component has been rendered
Set the Tree seelction model
Parameters: selectionModel - the selection model throws: IllegalStateException - this property cannot be changed after the Component has been rendered
True if only 1 node per branch may be expanded.
Parameters: singleExpand - true if only 1 node per branch may be expanded throws: IllegalStateException - this property cannot be changed after the Component has been rendered
Methods inherited from com.gwtext.client.widgets.Panel