2 "name" : "Roo.tree.TreeLoader",
6 "desc" : "A TreeLoader provides for lazy loading of an {@link Roo.tree.TreeNode}'s child\nnodes from a specified URL. The response must be a javascript Array definition\nwho's elements are node definition objects. eg:\n<pre><code>\n{ success : true,\n data : [\n \n { 'id': 1, 'text': 'A folder Node', 'leaf': false },\n { 'id': 2, 'text': 'A leaf Node', 'leaf': true }\n ]\n}\n\n\n</code></pre>\n<br><br>\nThe old style respose with just an array is still supported, but not recommended.\n<br><br>\n\nA server request is sent, and child nodes are loaded only when a node is expanded.\nThe loading node's id is passed to the server under the parameter name \"node\" to\nenable the server to produce the correct child nodes.\n<br><br>\nTo pass extra parameters, an event handler may be attached to the \"beforeload\"\nevent, and the parameters specified in the TreeLoader's baseParams property:\n<pre><code>\n myTreeLoader.on(\"beforeload\", function(treeLoader, node) {\n this.baseParams.category = node.attributes.category;\n }, this);\n \n</code></pre>\n\nThis would pass an HTTP parameter called \"category\" to the server containing\nthe value of the Node's \"category\" attribute.",
10 "memberOf" : "TreeLoader",
19 "desc" : "A config object containing config properties.",
29 "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>",
30 "memberOf" : "Roo.util.Observable",
35 "name" : "clearOnLoad",
37 "desc" : "(optional) Default to true. Remove previously existing\nchild nodes before loading.",
38 "memberOf" : "Roo.tree.TreeLoader",
45 "desc" : "The URL from which to request a Json string which\nspecifies an array of node definition object representing the child nodes\nto be loaded.",
46 "memberOf" : "Roo.tree.TreeLoader",
53 "desc" : "(optional) Default to false. Use this to read data from an object \nproperty on loading, rather than expecting an array. (eg. more compatible to a standard\nGrid query { data : [ .....] }",
54 "memberOf" : "Roo.tree.TreeLoader",
59 "name" : "requestMethod",
61 "desc" : "either GET or POST\ndefaults to POST (due to BC)\nto be loaded.",
62 "memberOf" : "Roo.tree.TreeLoader",
67 "name" : "baseParams",
69 "desc" : "(optional) An object containing properties which\nspecify HTTP parameters to be passed to each request for child nodes.",
70 "memberOf" : "Roo.tree.TreeLoader",
77 "desc" : "(optional) An object containing attributes to be added to all nodes\ncreated by this loader. If the attributes sent by the server have an attribute in this object,\nthey take priority.",
78 "memberOf" : "Roo.tree.TreeLoader",
83 "name" : "uiProviders",
85 "desc" : "(optional) An object containing properties which\n\nDEPRECATED - use 'create' event handler to modify attributes - which affect creation.\nspecify custom {@link Roo.tree.TreeNodeUI} implementations. If the optional\n<i>uiProvider</i> attribute of a returned child node is a string rather\nthan a reference to a TreeNodeUI implementation, this that string value\nis used as a property name in the uiProviders object. You can define the provider named\n'default' , and this will be used for all nodes (if no uiProvider is delivered by the node data)",
86 "memberOf" : "Roo.tree.TreeLoader",
91 "name" : "queryParam",
93 "desc" : "(optional) \nName of the query as it will be passed on the querystring (defaults to 'node')\neg. the request will be ?node=[id]",
94 "memberOf" : "Roo.tree.TreeLoader",
102 "desc" : "Load an {@link Roo.tree.TreeNode} from the URL specified in the constructor.\nThis is called automatically when a node is expanded, but may be used to reload\na node (or append new children if the {@link #clearOnLoad} option is false.)",
104 "isConstructor" : false,
106 "memberOf" : "Roo.tree.TreeLoader",
114 "type" : "Roo.tree.TreeNode",
129 "name" : "purgeListeners",
130 "desc" : "Removes all listeners for this object",
132 "isConstructor" : false,
134 "memberOf" : "Roo.util.Observable",
146 "desc" : "Appends an event handler to this element (shorthand for addListener)",
148 "isConstructor" : false,
150 "memberOf" : "Roo.util.Observable",
157 "name" : "eventName",
159 "desc" : "The type of event to listen for",
165 "desc" : "The method the event invokes",
171 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
177 "desc" : "(optional)",
186 "desc" : "Removes a listener (shorthand for removeListener)",
188 "isConstructor" : false,
190 "memberOf" : "Roo.util.Observable",
197 "name" : "eventName",
199 "desc" : "The type of event to listen for",
205 "desc" : "The handler to remove",
211 "desc" : "(optional) The scope (this object) for the handler",
219 "name" : "addEvents",
220 "desc" : "Used to define events on this Observable",
222 "isConstructor" : false,
224 "memberOf" : "Roo.util.Observable",
233 "desc" : "The object with the events defined",
241 "name" : "releaseCapture",
242 "desc" : "Removes <b>all</b> added captures from the Observable.",
244 "isConstructor" : false,
246 "memberOf" : "Roo.util.Observable",
254 "type" : "Observable",
255 "desc" : "The Observable to release",
263 "name" : "removeListener",
264 "desc" : "Removes a listener",
266 "isConstructor" : false,
268 "memberOf" : "Roo.util.Observable",
275 "name" : "eventName",
277 "desc" : "The type of event to listen for",
283 "desc" : "The handler to remove",
289 "desc" : "(optional) The scope (this object) for the handler",
297 "name" : "fireEvent",
298 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
300 "isConstructor" : false,
302 "memberOf" : "Roo.util.Observable",
309 "name" : "eventName",
316 "type" : "Object...",
317 "desc" : "Variable number of parameters are passed to handlers",
325 "desc" : "returns false if any of the handlers return false otherwise it returns true"
330 "name" : "hasListener",
331 "desc" : "Checks to see if this object has any listeners for a specified event",
333 "isConstructor" : false,
335 "memberOf" : "Roo.util.Observable",
342 "name" : "eventName",
344 "desc" : "The name of the event to check for",
352 "desc" : "True if the event is being listened for, else false"
358 "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.",
360 "isConstructor" : false,
362 "memberOf" : "Roo.util.Observable",
370 "type" : "Observable",
371 "desc" : "The Observable to capture",
377 "desc" : "The function to call",
383 "desc" : "(optional) The scope (this object) for the fn",
391 "name" : "addListener",
392 "desc" : "Appends an event handler to this component",
394 "isConstructor" : false,
396 "memberOf" : "Roo.util.Observable",
403 "name" : "eventName",
405 "desc" : "The type of event to listen for",
411 "desc" : "The method the event invokes",
417 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
423 "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>",
434 "desc" : "Fires before a node is created, enabling you to return custom Node types",
435 "memberOf" : "Roo.tree.TreeLoader",
444 "desc" : "TreeLoader object.",
450 "desc" : "- the data returned from the AJAX call (modify it to suit)",
458 "name" : "beforeload",
459 "desc" : "Fires before a network request is made to retrieve the Json text which specifies a node's children.",
460 "memberOf" : "Roo.tree.TreeLoader",
469 "desc" : "TreeLoader object.",
475 "desc" : "The {@link Roo.tree.TreeNode} object being loaded.",
481 "desc" : "The callback function specified in the {@link #load} call.",
490 "desc" : "Fires when the node has been successfuly loaded.",
491 "memberOf" : "Roo.tree.TreeLoader",
500 "desc" : "TreeLoader object.",
506 "desc" : "The {@link Roo.tree.TreeNode} object being loaded.",
512 "desc" : "The response object containing the data from the server.",
520 "name" : "loadexception",
521 "desc" : "Fires if the network request failed.",
522 "memberOf" : "Roo.tree.TreeLoader",
531 "desc" : "TreeLoader object.",
537 "desc" : "The {@link Roo.tree.TreeNode} object being loaded.",
543 "desc" : "The response object containing the data from the server.",