2 "name" : "Roo.tree.TreePanel",
11 "memberOf" : "TreePanel",
19 "type" : "String/HTMLElement/Element",
20 "desc" : "The container element",
35 "type" : "Object|Roo.tree.TreeEditor",
36 "desc" : "The TreeEditor or xtype data to display when clicked.",
37 "memberOf" : "Roo.tree.TreePanel",
44 "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>",
45 "memberOf" : "Roo.util.Observable",
50 "name" : "singleExpand",
52 "desc" : "true if only 1 node per branch may be expanded",
53 "memberOf" : "Roo.tree.TreePanel",
58 "name" : "ddAppendOnly",
60 "desc" : "True if the tree should only allow append drops (use for trees which are sorted)",
61 "memberOf" : "Roo.tree.TreePanel",
66 "name" : "dragConfig",
68 "desc" : "Custom config to pass to the {@link Roo.tree.TreeDragZone} instance",
69 "memberOf" : "Roo.tree.TreePanel",
74 "name" : "enableDrop",
76 "desc" : "true to enable just drop",
77 "memberOf" : "Roo.tree.TreePanel",
84 "desc" : "The color of the node highlight (defaults to C3DAF9)",
85 "memberOf" : "Roo.tree.TreePanel",
90 "name" : "rendererTip",
92 "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>",
93 "memberOf" : "Roo.tree.TreePanel",
100 "desc" : "true to enable drag and drop",
101 "memberOf" : "Roo.tree.TreePanel",
108 "desc" : "false to disable node highlight on drop (defaults to the value of Roo.enableFx)",
109 "memberOf" : "Roo.tree.TreePanel",
116 "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>",
117 "memberOf" : "Roo.tree.TreePanel",
122 "name" : "rootVisible",
124 "desc" : "false to hide the root node (defaults to true)",
125 "memberOf" : "Roo.tree.TreePanel",
130 "name" : "enableDrag",
132 "desc" : "true to enable just drag",
133 "memberOf" : "Roo.tree.TreePanel",
140 "desc" : "The DD group this TreePanel belongs to",
141 "memberOf" : "Roo.tree.TreePanel",
148 "desc" : "false to disable tree lines (defaults to true)",
149 "memberOf" : "Roo.tree.TreePanel",
154 "name" : "dropConfig",
156 "desc" : "Custom config to pass to the {@link Roo.tree.TreeDropZone} instance",
157 "memberOf" : "Roo.tree.TreePanel",
164 "desc" : "A tree selection model to use with this TreePanel (defaults to a {@link Roo.tree.DefaultSelectionModel})",
165 "memberOf" : "Roo.tree.TreePanel",
172 "desc" : "A TreeLoader for use with this TreePanel",
173 "memberOf" : "Roo.tree.TreePanel",
178 "name" : "containerScroll",
180 "desc" : "true to register this container with ScrollManager",
181 "memberOf" : "Roo.tree.TreePanel",
188 "desc" : "true to enable YUI body scrolling",
189 "memberOf" : "Roo.tree.TreePanel",
196 "desc" : "true to enable animated expand/collapse (defaults to the value of Roo.enableFx)",
197 "memberOf" : "Roo.tree.TreePanel",
202 "name" : "pathSeparator",
204 "desc" : "The token used to separate sub-paths in path strings (defaults to '/')",
205 "memberOf" : "Roo.tree.TreePanel",
212 "name" : "getLoader",
213 "desc" : "Returns the default TreeLoader for this TreePanel",
215 "isConstructor" : false,
217 "memberOf" : "Roo.tree.TreePanel",
229 "desc" : "Trigger rendering of this TreePanel",
231 "isConstructor" : false,
233 "memberOf" : "Roo.tree.TreePanel",
244 "name" : "getSelectionModel",
245 "desc" : "Returns the selection model used by this TreePanel",
247 "isConstructor" : false,
249 "memberOf" : "Roo.tree.TreePanel",
260 "name" : "expandPath",
261 "desc" : "Expands a specified path in this TreePanel. A path can be retrieved from a node with {@link Roo.data.Node#getPath}",
263 "isConstructor" : false,
265 "memberOf" : "Roo.tree.TreePanel",
280 "desc" : "(optional) The attribute used in the path (see {@link Roo.data.Node#getPath} for more info)",
286 "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.",
294 "name" : "expandAll",
295 "desc" : "Expand all nodes",
297 "isConstructor" : false,
299 "memberOf" : "Roo.tree.TreePanel",
310 "name" : "getChecked",
311 "desc" : "Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. \"id\")",
313 "isConstructor" : false,
315 "memberOf" : "Roo.tree.TreePanel",
322 "name" : "attribute",
324 "desc" : "(optional) Defaults to null (return the actual nodes)",
328 "name" : "startNode",
330 "desc" : "(optional) The node to start from, defaults to the root",
343 "name" : "selectPath",
344 "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}",
346 "isConstructor" : false,
348 "memberOf" : "Roo.tree.TreePanel",
363 "desc" : "(optional) The attribute used in the path (see {@link Roo.data.Node#getPath} for more info)",
369 "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.",
378 "desc" : "Returns the container element for this TreePanel",
380 "isConstructor" : false,
382 "memberOf" : "Roo.tree.TreePanel",
393 "name" : "collapseAll",
394 "desc" : "Collapse all nodes",
396 "isConstructor" : false,
398 "memberOf" : "Roo.tree.TreePanel",
409 "name" : "setRootNode",
410 "desc" : "Sets the root node for this tree.",
412 "isConstructor" : false,
414 "memberOf" : "Roo.data.Tree",
436 "name" : "getRootNode",
437 "desc" : "Returns the root node for this tree.",
439 "isConstructor" : false,
441 "memberOf" : "Roo.data.Tree",
457 "name" : "getNodeById",
458 "desc" : "Gets a node in this tree by its id.",
460 "isConstructor" : false,
462 "memberOf" : "Roo.data.Tree",
484 "name" : "purgeListeners",
485 "desc" : "Removes all listeners for this object",
487 "isConstructor" : false,
489 "memberOf" : "Roo.util.Observable",
501 "desc" : "Appends an event handler to this element (shorthand for addListener)",
503 "isConstructor" : false,
505 "memberOf" : "Roo.util.Observable",
512 "name" : "eventName",
514 "desc" : "The type of event to listen for",
520 "desc" : "The method the event invokes",
526 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
532 "desc" : "(optional)",
541 "desc" : "Removes a listener (shorthand for removeListener)",
543 "isConstructor" : false,
545 "memberOf" : "Roo.util.Observable",
552 "name" : "eventName",
554 "desc" : "The type of event to listen for",
560 "desc" : "The handler to remove",
566 "desc" : "(optional) The scope (this object) for the handler",
574 "name" : "addEvents",
575 "desc" : "Used to define events on this Observable",
577 "isConstructor" : false,
579 "memberOf" : "Roo.util.Observable",
588 "desc" : "The object with the events defined",
596 "name" : "releaseCapture",
597 "desc" : "Removes <b>all</b> added captures from the Observable.",
599 "isConstructor" : false,
601 "memberOf" : "Roo.util.Observable",
609 "type" : "Observable",
610 "desc" : "The Observable to release",
618 "name" : "removeListener",
619 "desc" : "Removes a listener",
621 "isConstructor" : false,
623 "memberOf" : "Roo.util.Observable",
630 "name" : "eventName",
632 "desc" : "The type of event to listen for",
638 "desc" : "The handler to remove",
644 "desc" : "(optional) The scope (this object) for the handler",
652 "name" : "fireEvent",
653 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
655 "isConstructor" : false,
657 "memberOf" : "Roo.util.Observable",
664 "name" : "eventName",
671 "type" : "Object...",
672 "desc" : "Variable number of parameters are passed to handlers",
680 "desc" : "returns false if any of the handlers return false otherwise it returns true"
685 "name" : "hasListener",
686 "desc" : "Checks to see if this object has any listeners for a specified event",
688 "isConstructor" : false,
690 "memberOf" : "Roo.util.Observable",
697 "name" : "eventName",
699 "desc" : "The name of the event to check for",
707 "desc" : "True if the event is being listened for, else false"
713 "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.",
715 "isConstructor" : false,
717 "memberOf" : "Roo.util.Observable",
725 "type" : "Observable",
726 "desc" : "The Observable to capture",
732 "desc" : "The function to call",
738 "desc" : "(optional) The scope (this object) for the fn",
746 "name" : "addListener",
747 "desc" : "Appends an event handler to this component",
749 "isConstructor" : false,
751 "memberOf" : "Roo.util.Observable",
758 "name" : "eventName",
760 "desc" : "The type of event to listen for",
766 "desc" : "The method the event invokes",
772 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
778 "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>",
789 "desc" : "Fires when a node is double clicked",
790 "memberOf" : "Roo.tree.TreePanel",
804 "type" : "Roo.EventObject",
805 "desc" : "The event object",
813 "name" : "contextmenu",
814 "desc" : "Fires when a node is right clicked",
815 "memberOf" : "Roo.tree.TreePanel",
829 "type" : "Roo.EventObject",
830 "desc" : "The event object",
838 "name" : "beforeclick",
839 "desc" : "Fires before click processing on a node. Return false to cancel the default action.",
840 "memberOf" : "Roo.tree.TreePanel",
854 "type" : "Roo.EventObject",
855 "desc" : "The event object",
863 "name" : "checkchange",
864 "desc" : "Fires when a node with a checkbox's checked property changes",
865 "memberOf" : "Roo.tree.TreePanel",
874 "desc" : "This node",
888 "name" : "nodedragover",
889 "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>",
890 "memberOf" : "Roo.tree.TreePanel",
897 "name" : "dragOverEvent",
907 "name" : "beforeexpand",
908 "desc" : "Fires before a node is expanded, return false to cancel.",
909 "memberOf" : "Roo.tree.TreePanel",
939 "desc" : "Fires when a node is collapsed",
940 "memberOf" : "Roo.tree.TreePanel",
957 "name" : "beforenodedrop",
958 "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>",
959 "memberOf" : "Roo.tree.TreePanel",
966 "name" : "dropEvent",
976 "name" : "beforechildrenrendered",
977 "desc" : "Fires right before the child nodes for a node are rendered",
978 "memberOf" : "Roo.tree.TreePanel",
995 "name" : "textchange",
996 "desc" : "Fires when the text for a node is changed",
997 "memberOf" : "Roo.tree.TreePanel",
1006 "desc" : "The node",
1007 "isOptional" : false
1012 "desc" : "The new text",
1013 "isOptional" : false
1018 "desc" : "The old text",
1019 "isOptional" : false
1027 "desc" : "Fires when a node is loaded",
1028 "memberOf" : "Roo.tree.TreePanel",
1037 "desc" : "The node that was loaded",
1038 "isOptional" : false
1045 "name" : "startdrag",
1046 "desc" : "Fires when a node starts being dragged",
1047 "memberOf" : "Roo.tree.TreePanel",
1055 "type" : "Roo.tree.TreePanel",
1057 "isOptional" : false
1061 "type" : "Roo.tree.TreeNode",
1063 "isOptional" : false
1068 "desc" : "The raw browser event",
1069 "isOptional" : false
1077 "desc" : "Fires when a node is clicked",
1078 "memberOf" : "Roo.tree.TreePanel",
1087 "desc" : "The node",
1088 "isOptional" : false
1092 "type" : "Roo.EventObject",
1093 "desc" : "The event object",
1094 "isOptional" : false
1102 "desc" : "Fires when a node is expanded",
1103 "memberOf" : "Roo.tree.TreePanel",
1112 "desc" : "The node",
1113 "isOptional" : false
1121 "desc" : "Fires when a drag operation is complete",
1122 "memberOf" : "Roo.tree.TreePanel",
1130 "type" : "Roo.tree.TreePanel",
1132 "isOptional" : false
1136 "type" : "Roo.tree.TreeNode",
1138 "isOptional" : false
1143 "desc" : "The raw browser event",
1144 "isOptional" : false
1151 "name" : "nodedrop",
1152 "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>",
1153 "memberOf" : "Roo.tree.TreePanel",
1160 "name" : "dropEvent",
1163 "isOptional" : false
1170 "name" : "dragdrop",
1171 "desc" : "Fires when a dragged node is dropped on a valid DD target",
1172 "memberOf" : "Roo.tree.TreePanel",
1180 "type" : "Roo.tree.TreePanel",
1182 "isOptional" : false
1186 "type" : "Roo.tree.TreeNode",
1188 "isOptional" : false
1193 "desc" : "The dd it was dropped on",
1194 "isOptional" : false
1199 "desc" : "The raw browser event",
1200 "isOptional" : false
1207 "name" : "beforecollapse",
1208 "desc" : "Fires before a node is collapsed, return false to cancel.",
1209 "memberOf" : "Roo.tree.TreePanel",
1218 "desc" : "The node",
1219 "isOptional" : false
1225 "isOptional" : false
1231 "isOptional" : false
1238 "name" : "disabledchange",
1239 "desc" : "Fires when the disabled status of a node changes",
1240 "memberOf" : "Roo.tree.TreePanel",
1249 "desc" : "The node",
1250 "isOptional" : false
1253 "name" : "disabled",
1256 "isOptional" : false
1263 "name" : "beforeload",
1264 "desc" : "Fires before a node is loaded, return false to cancel",
1265 "memberOf" : "Roo.tree.TreePanel",
1274 "desc" : "The node being loaded",
1275 "isOptional" : false
1283 "desc" : "Fires when a new child node is appended to a node in this tree.",
1284 "memberOf" : "Roo.data.Tree",
1293 "desc" : "The owner tree",
1294 "isOptional" : false
1299 "desc" : "The parent node",
1300 "isOptional" : false
1305 "desc" : "The newly appended node",
1306 "isOptional" : false
1311 "desc" : "The index of the newly appended node",
1312 "isOptional" : false
1319 "name" : "beforemove",
1320 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
1321 "memberOf" : "Roo.data.Tree",
1330 "desc" : "The owner tree",
1331 "isOptional" : false
1336 "desc" : "The node being moved",
1337 "isOptional" : false
1340 "name" : "oldParent",
1342 "desc" : "The parent of the node",
1343 "isOptional" : false
1346 "name" : "newParent",
1348 "desc" : "The new parent the node is moving to",
1349 "isOptional" : false
1354 "desc" : "The index it is being moved to",
1355 "isOptional" : false
1363 "desc" : "Fires when a new child node is inserted in a node in this tree.",
1364 "memberOf" : "Roo.data.Tree",
1373 "desc" : "The owner tree",
1374 "isOptional" : false
1379 "desc" : "The parent node",
1380 "isOptional" : false
1385 "desc" : "The child node inserted",
1386 "isOptional" : false
1391 "desc" : "The child node the node was inserted before",
1392 "isOptional" : false
1399 "name" : "beforeappend",
1400 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
1401 "memberOf" : "Roo.data.Tree",
1410 "desc" : "The owner tree",
1411 "isOptional" : false
1416 "desc" : "The parent node",
1417 "isOptional" : false
1422 "desc" : "The child node to be appended",
1423 "isOptional" : false
1431 "desc" : "Fires when a node is moved to a new location in the tree",
1432 "memberOf" : "Roo.data.Tree",
1441 "desc" : "The owner tree",
1442 "isOptional" : false
1447 "desc" : "The node moved",
1448 "isOptional" : false
1451 "name" : "oldParent",
1453 "desc" : "The old parent of this node",
1454 "isOptional" : false
1457 "name" : "newParent",
1459 "desc" : "The new parent of this node",
1460 "isOptional" : false
1465 "desc" : "The index it was moved to",
1466 "isOptional" : false
1473 "name" : "beforeremove",
1474 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
1475 "memberOf" : "Roo.data.Tree",
1484 "desc" : "The owner tree",
1485 "isOptional" : false
1490 "desc" : "The parent node",
1491 "isOptional" : false
1496 "desc" : "The child node to be removed",
1497 "isOptional" : false
1505 "desc" : "Fires when a child node is removed from a node in this tree.",
1506 "memberOf" : "Roo.data.Tree",
1515 "desc" : "The owner tree",
1516 "isOptional" : false
1521 "desc" : "The parent node",
1522 "isOptional" : false
1527 "desc" : "The child node removed",
1528 "isOptional" : false
1535 "name" : "beforeinsert",
1536 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
1537 "memberOf" : "Roo.data.Tree",
1546 "desc" : "The owner tree",
1547 "isOptional" : false
1552 "desc" : "The parent node",
1553 "isOptional" : false
1558 "desc" : "The child node to be inserted",
1559 "isOptional" : false
1564 "desc" : "The child node the node is being inserted before",
1565 "isOptional" : false