2 "name" : "Roo.tree.TreePanel",
11 "memberOf" : "TreePanel",
19 "type" : "String/HTMLElement/Element",
20 "desc" : "The container element",
34 "type" : "Object|Roo.tree.TreeEditor",
35 "desc" : "The TreeEditor or xtype data to display when clicked.",
36 "memberOf" : "Roo.tree.TreePanel",
42 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
43 "memberOf" : "Roo.util.Observable",
47 "name" : "singleExpand",
49 "desc" : "true if only 1 node per branch may be expanded",
50 "memberOf" : "Roo.tree.TreePanel",
54 "name" : "ddAppendOnly",
56 "desc" : "True if the tree should only allow append drops (use for trees which are sorted)",
57 "memberOf" : "Roo.tree.TreePanel",
61 "name" : "dragConfig",
63 "desc" : "Custom config to pass to the {@link Roo.tree.TreeDragZone} instance",
64 "memberOf" : "Roo.tree.TreePanel",
68 "name" : "enableDrop",
70 "desc" : "true to enable just drop",
71 "memberOf" : "Roo.tree.TreePanel",
77 "desc" : "The color of the node highlight (defaults to C3DAF9)",
78 "memberOf" : "Roo.tree.TreePanel",
82 "name" : "rendererTip",
84 "desc" : "DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes hovertip to return HTML markup for the tree view. The render function is called with the following parameters:<ul><li>The {Object} The data for the node.</li></ul>",
85 "memberOf" : "Roo.tree.TreePanel",
91 "desc" : "true to enable drag and drop",
92 "memberOf" : "Roo.tree.TreePanel",
98 "desc" : "false to disable node highlight on drop (defaults to the value of Roo.enableFx)",
99 "memberOf" : "Roo.tree.TreePanel",
105 "desc" : "DEPRECATED - use TreeLoader:create event / Sets the rendering (formatting) function for the nodes. to return HTML markup for the tree view. The render function is called with the following parameters:<ul><li>The {Object} The data for the node.</li></ul>",
106 "memberOf" : "Roo.tree.TreePanel",
110 "name" : "rootVisible",
112 "desc" : "false to hide the root node (defaults to true)",
113 "memberOf" : "Roo.tree.TreePanel",
117 "name" : "enableDrag",
119 "desc" : "true to enable just drag",
120 "memberOf" : "Roo.tree.TreePanel",
126 "desc" : "The DD group this TreePanel belongs to",
127 "memberOf" : "Roo.tree.TreePanel",
133 "desc" : "false to disable tree lines (defaults to true)",
134 "memberOf" : "Roo.tree.TreePanel",
138 "name" : "dropConfig",
140 "desc" : "Custom config to pass to the {@link Roo.tree.TreeDropZone} instance",
141 "memberOf" : "Roo.tree.TreePanel",
147 "desc" : "A tree selection model to use with this TreePanel (defaults to a {@link Roo.tree.DefaultSelectionModel})",
148 "memberOf" : "Roo.tree.TreePanel",
154 "desc" : "A TreeLoader for use with this TreePanel",
155 "memberOf" : "Roo.tree.TreePanel",
159 "name" : "containerScroll",
161 "desc" : "true to register this container with ScrollManager",
162 "memberOf" : "Roo.tree.TreePanel",
168 "desc" : "true to enable YUI body scrolling",
169 "memberOf" : "Roo.tree.TreePanel",
175 "desc" : "true to enable animated expand/collapse (defaults to the value of Roo.enableFx)",
176 "memberOf" : "Roo.tree.TreePanel",
180 "name" : "pathSeparator",
182 "desc" : "The token used to separate sub-paths in path strings (defaults to '/')",
183 "memberOf" : "Roo.tree.TreePanel",
189 "name" : "getLoader",
190 "desc" : "Returns the default TreeLoader for this TreePanel",
192 "isConstructor" : false,
194 "memberOf" : "Roo.tree.TreePanel",
204 "desc" : "Trigger rendering of this TreePanel",
206 "isConstructor" : false,
208 "memberOf" : "Roo.tree.TreePanel",
217 "name" : "getSelectionModel",
218 "desc" : "Returns the selection model used by this TreePanel",
220 "isConstructor" : false,
222 "memberOf" : "Roo.tree.TreePanel",
231 "name" : "expandPath",
232 "desc" : "Expands a specified path in this TreePanel. A path can be retrieved from a node with {@link Roo.data.Node#getPath}",
234 "isConstructor" : false,
236 "memberOf" : "Roo.tree.TreePanel",
251 "desc" : "(optional) The attribute used in the path (see {@link Roo.data.Node#getPath} for more info)",
257 "desc" : "(optional) The callback to call when the expand is complete. The callback will be called with\n(bSuccess, oLastNode) where bSuccess is if the expand was successful and oLastNode is the last node that was expanded.",
264 "name" : "expandAll",
265 "desc" : "Expand all nodes",
267 "isConstructor" : false,
269 "memberOf" : "Roo.tree.TreePanel",
278 "name" : "getChecked",
279 "desc" : "Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. \"id\")",
281 "isConstructor" : false,
283 "memberOf" : "Roo.tree.TreePanel",
290 "name" : "attribute",
292 "desc" : "(optional) Defaults to null (return the actual nodes)",
296 "name" : "startNode",
298 "desc" : "(optional) The node to start from, defaults to the root",
311 "name" : "selectPath",
312 "desc" : "Selects the node in this tree at the specified path. A path can be retrieved from a node with {@link Roo.data.Node#getPath}",
314 "isConstructor" : false,
316 "memberOf" : "Roo.tree.TreePanel",
331 "desc" : "(optional) The attribute used in the path (see {@link Roo.data.Node#getPath} for more info)",
337 "desc" : "(optional) The callback to call when the selection is complete. The callback will be called with\n(bSuccess, oSelNode) where bSuccess is if the selection was successful and oSelNode is the selected node.",
345 "desc" : "Returns the container element for this TreePanel",
347 "isConstructor" : false,
349 "memberOf" : "Roo.tree.TreePanel",
358 "name" : "collapseAll",
359 "desc" : "Collapse all nodes",
361 "isConstructor" : false,
363 "memberOf" : "Roo.tree.TreePanel",
372 "name" : "setRootNode",
373 "desc" : "Sets the root node for this tree.",
375 "isConstructor" : false,
377 "memberOf" : "Roo.data.Tree",
399 "name" : "getRootNode",
400 "desc" : "Returns the root node for this tree.",
402 "isConstructor" : false,
404 "memberOf" : "Roo.data.Tree",
419 "name" : "getNodeById",
420 "desc" : "Gets a node in this tree by its id.",
422 "isConstructor" : false,
424 "memberOf" : "Roo.data.Tree",
446 "name" : "purgeListeners",
447 "desc" : "Removes all listeners for this object",
449 "isConstructor" : false,
451 "memberOf" : "Roo.util.Observable",
461 "desc" : "Appends an event handler to this element (shorthand for addListener)",
463 "isConstructor" : false,
465 "memberOf" : "Roo.util.Observable",
472 "name" : "eventName",
474 "desc" : "The type of event to listen for",
480 "desc" : "The method the event invokes",
486 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
492 "desc" : "(optional)",
500 "desc" : "Removes a listener (shorthand for removeListener)",
502 "isConstructor" : false,
504 "memberOf" : "Roo.util.Observable",
511 "name" : "eventName",
513 "desc" : "The type of event to listen for",
519 "desc" : "The handler to remove",
525 "desc" : "(optional) The scope (this object) for the handler",
532 "name" : "addEvents",
533 "desc" : "Used to define events on this Observable",
535 "isConstructor" : false,
537 "memberOf" : "Roo.util.Observable",
546 "desc" : "The object with the events defined",
553 "name" : "releaseCapture",
554 "desc" : "Removes <b>all</b> added captures from the Observable.",
556 "isConstructor" : false,
558 "memberOf" : "Roo.util.Observable",
566 "type" : "Observable",
567 "desc" : "The Observable to release",
574 "name" : "removeListener",
575 "desc" : "Removes a listener",
577 "isConstructor" : false,
579 "memberOf" : "Roo.util.Observable",
586 "name" : "eventName",
588 "desc" : "The type of event to listen for",
594 "desc" : "The handler to remove",
600 "desc" : "(optional) The scope (this object) for the handler",
607 "name" : "fireEvent",
608 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
610 "isConstructor" : false,
612 "memberOf" : "Roo.util.Observable",
619 "name" : "eventName",
626 "type" : "Object...",
627 "desc" : "Variable number of parameters are passed to handlers",
635 "desc" : "returns false if any of the handlers return false otherwise it returns true"
640 "name" : "hasListener",
641 "desc" : "Checks to see if this object has any listeners for a specified event",
643 "isConstructor" : false,
645 "memberOf" : "Roo.util.Observable",
652 "name" : "eventName",
654 "desc" : "The name of the event to check for",
662 "desc" : "True if the event is being listened for, else false"
668 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
670 "isConstructor" : false,
672 "memberOf" : "Roo.util.Observable",
680 "type" : "Observable",
681 "desc" : "The Observable to capture",
687 "desc" : "The function to call",
693 "desc" : "(optional) The scope (this object) for the fn",
700 "name" : "addListener",
701 "desc" : "Appends an event handler to this component",
703 "isConstructor" : false,
705 "memberOf" : "Roo.util.Observable",
712 "name" : "eventName",
714 "desc" : "The type of event to listen for",
720 "desc" : "The method the event invokes",
726 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
732 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
742 "desc" : "Fires when a node is double clicked",
743 "memberOf" : "Roo.tree.TreePanel",
757 "type" : "Roo.EventObject",
758 "desc" : "The event object",
765 "name" : "contextmenu",
766 "desc" : "Fires when a node is right clicked",
767 "memberOf" : "Roo.tree.TreePanel",
781 "type" : "Roo.EventObject",
782 "desc" : "The event object",
789 "name" : "beforeclick",
790 "desc" : "Fires before click processing on a node. Return false to cancel the default action.",
791 "memberOf" : "Roo.tree.TreePanel",
805 "type" : "Roo.EventObject",
806 "desc" : "The event object",
813 "name" : "checkchange",
814 "desc" : "Fires when a node with a checkbox's checked property changes",
815 "memberOf" : "Roo.tree.TreePanel",
824 "desc" : "This node",
837 "name" : "nodedragover",
838 "desc" : "Fires when a tree node is being targeted for a drag drop, return false to signal drop not allowed. The dragOverEvent\npassed to handlers has the following properties:<br />\n<ul style=\"padding:5px;padding-left:16px;\">\n<li>tree - The TreePanel</li>\n<li>target - The node being targeted for the drop</li>\n<li>data - The drag data from the drag source</li>\n<li>point - The point of the drop - append, above or below</li>\n<li>source - The drag source</li>\n<li>rawEvent - Raw mouse event</li>\n<li>dropNode - Drop node(s) provided by the source.</li>\n<li>cancel - Set this to true to signal drop not allowed.</li>\n</ul>",
839 "memberOf" : "Roo.tree.TreePanel",
846 "name" : "dragOverEvent",
855 "name" : "beforeexpand",
856 "desc" : "Fires before a node is expanded, return false to cancel.",
857 "memberOf" : "Roo.tree.TreePanel",
886 "desc" : "Fires when a node is collapsed",
887 "memberOf" : "Roo.tree.TreePanel",
903 "name" : "beforenodedrop",
904 "desc" : "Fires when a DD object is dropped on a node in this tree for preprocessing. Return false to cancel the drop. The dropEvent\npassed to handlers has the following properties:<br />\n<ul style=\"padding:5px;padding-left:16px;\">\n<li>tree - The TreePanel</li>\n<li>target - The node being targeted for the drop</li>\n<li>data - The drag data from the drag source</li>\n<li>point - The point of the drop - append, above or below</li>\n<li>source - The drag source</li>\n<li>rawEvent - Raw mouse event</li>\n<li>dropNode - Drop node(s) provided by the source <b>OR</b> you can supply node(s)\nto be inserted by setting them on this object.</li>\n<li>cancel - Set this to true to cancel the drop.</li>\n</ul>",
905 "memberOf" : "Roo.tree.TreePanel",
912 "name" : "dropEvent",
921 "name" : "beforechildrenrendered",
922 "desc" : "Fires right before the child nodes for a node are rendered",
923 "memberOf" : "Roo.tree.TreePanel",
939 "name" : "textchange",
940 "desc" : "Fires when the text for a node is changed",
941 "memberOf" : "Roo.tree.TreePanel",
956 "desc" : "The new text",
962 "desc" : "The old text",
970 "desc" : "Fires when a node is loaded",
971 "memberOf" : "Roo.tree.TreePanel",
980 "desc" : "The node that was loaded",
987 "name" : "appendnode",
988 "desc" : "Fires when append node to the tree",
989 "memberOf" : "Roo.tree.TreePanel",
997 "type" : "Roo.tree.TreePanel",
1003 "type" : "Roo.tree.TreeNode",
1005 "isOptional" : false
1010 "desc" : "The index of the newly appended node",
1011 "isOptional" : false
1017 "name" : "startdrag",
1018 "desc" : "Fires when a node starts being dragged",
1019 "memberOf" : "Roo.tree.TreePanel",
1027 "type" : "Roo.tree.TreePanel",
1029 "isOptional" : false
1033 "type" : "Roo.tree.TreeNode",
1035 "isOptional" : false
1040 "desc" : "The raw browser event",
1041 "isOptional" : false
1048 "desc" : "Fires when a node is clicked",
1049 "memberOf" : "Roo.tree.TreePanel",
1058 "desc" : "The node",
1059 "isOptional" : false
1063 "type" : "Roo.EventObject",
1064 "desc" : "The event object",
1065 "isOptional" : false
1072 "desc" : "Fires when a node is expanded",
1073 "memberOf" : "Roo.tree.TreePanel",
1082 "desc" : "The node",
1083 "isOptional" : false
1090 "desc" : "Fires when a drag operation is complete",
1091 "memberOf" : "Roo.tree.TreePanel",
1099 "type" : "Roo.tree.TreePanel",
1101 "isOptional" : false
1105 "type" : "Roo.tree.TreeNode",
1107 "isOptional" : false
1112 "desc" : "The raw browser event",
1113 "isOptional" : false
1119 "name" : "nodedrop",
1120 "desc" : "Fires after a DD object is dropped on a node in this tree. The dropEvent\npassed to handlers has the following properties:<br />\n<ul style=\"padding:5px;padding-left:16px;\">\n<li>tree - The TreePanel</li>\n<li>target - The node being targeted for the drop</li>\n<li>data - The drag data from the drag source</li>\n<li>point - The point of the drop - append, above or below</li>\n<li>source - The drag source</li>\n<li>rawEvent - Raw mouse event</li>\n<li>dropNode - Dropped node(s).</li>\n</ul>",
1121 "memberOf" : "Roo.tree.TreePanel",
1128 "name" : "dropEvent",
1131 "isOptional" : false
1137 "name" : "dragdrop",
1138 "desc" : "Fires when a dragged node is dropped on a valid DD target",
1139 "memberOf" : "Roo.tree.TreePanel",
1147 "type" : "Roo.tree.TreePanel",
1149 "isOptional" : false
1153 "type" : "Roo.tree.TreeNode",
1155 "isOptional" : false
1160 "desc" : "The dd it was dropped on",
1161 "isOptional" : false
1166 "desc" : "The raw browser event",
1167 "isOptional" : false
1173 "name" : "beforecollapse",
1174 "desc" : "Fires before a node is collapsed, return false to cancel.",
1175 "memberOf" : "Roo.tree.TreePanel",
1184 "desc" : "The node",
1185 "isOptional" : false
1191 "isOptional" : false
1197 "isOptional" : false
1203 "name" : "disabledchange",
1204 "desc" : "Fires when the disabled status of a node changes",
1205 "memberOf" : "Roo.tree.TreePanel",
1214 "desc" : "The node",
1215 "isOptional" : false
1218 "name" : "disabled",
1221 "isOptional" : false
1227 "name" : "beforeload",
1228 "desc" : "Fires before a node is loaded, return false to cancel",
1229 "memberOf" : "Roo.tree.TreePanel",
1238 "desc" : "The node being loaded",
1239 "isOptional" : false
1246 "desc" : "Fires when a new child node is appended to a node in this tree.",
1247 "memberOf" : "Roo.data.Tree",
1256 "desc" : "The owner tree",
1257 "isOptional" : false
1262 "desc" : "The parent node",
1263 "isOptional" : false
1268 "desc" : "The newly appended node",
1269 "isOptional" : false
1274 "desc" : "The index of the newly appended node",
1275 "isOptional" : false
1281 "name" : "beforemove",
1282 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
1283 "memberOf" : "Roo.data.Tree",
1292 "desc" : "The owner tree",
1293 "isOptional" : false
1298 "desc" : "The node being moved",
1299 "isOptional" : false
1302 "name" : "oldParent",
1304 "desc" : "The parent of the node",
1305 "isOptional" : false
1308 "name" : "newParent",
1310 "desc" : "The new parent the node is moving to",
1311 "isOptional" : false
1316 "desc" : "The index it is being moved to",
1317 "isOptional" : false
1324 "desc" : "Fires when a new child node is inserted in a node in this tree.",
1325 "memberOf" : "Roo.data.Tree",
1334 "desc" : "The owner tree",
1335 "isOptional" : false
1340 "desc" : "The parent node",
1341 "isOptional" : false
1346 "desc" : "The child node inserted",
1347 "isOptional" : false
1352 "desc" : "The child node the node was inserted before",
1353 "isOptional" : false
1359 "name" : "beforeappend",
1360 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
1361 "memberOf" : "Roo.data.Tree",
1370 "desc" : "The owner tree",
1371 "isOptional" : false
1376 "desc" : "The parent node",
1377 "isOptional" : false
1382 "desc" : "The child node to be appended",
1383 "isOptional" : false
1390 "desc" : "Fires when a node is moved to a new location in the tree",
1391 "memberOf" : "Roo.data.Tree",
1400 "desc" : "The owner tree",
1401 "isOptional" : false
1406 "desc" : "The node moved",
1407 "isOptional" : false
1410 "name" : "oldParent",
1412 "desc" : "The old parent of this node",
1413 "isOptional" : false
1416 "name" : "newParent",
1418 "desc" : "The new parent of this node",
1419 "isOptional" : false
1424 "desc" : "The index it was moved to",
1425 "isOptional" : false
1431 "name" : "beforeremove",
1432 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
1433 "memberOf" : "Roo.data.Tree",
1442 "desc" : "The owner tree",
1443 "isOptional" : false
1448 "desc" : "The parent node",
1449 "isOptional" : false
1454 "desc" : "The child node to be removed",
1455 "isOptional" : false
1462 "desc" : "Fires when a child node is removed from a node in this tree.",
1463 "memberOf" : "Roo.data.Tree",
1472 "desc" : "The owner tree",
1473 "isOptional" : false
1478 "desc" : "The parent node",
1479 "isOptional" : false
1484 "desc" : "The child node removed",
1485 "isOptional" : false
1491 "name" : "beforeinsert",
1492 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
1493 "memberOf" : "Roo.data.Tree",
1502 "desc" : "The owner tree",
1503 "isOptional" : false
1508 "desc" : "The parent node",
1509 "isOptional" : false
1514 "desc" : "The child node to be inserted",
1515 "isOptional" : false
1520 "desc" : "The child node the node is being inserted before",
1521 "isOptional" : false