2 "name" : "Roo.TreePanel",
7 "desc" : "Treepanel component",
11 "memberOf" : "TreePanel",
19 "type" : "String/Object",
20 "desc" : "A string to set only the panel's title, or a config object",
29 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
30 "memberOf" : "Roo.ContentPanel",
36 "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>",
37 "memberOf" : "Roo.util.Observable",
41 "name" : "autoScroll",
43 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
44 "memberOf" : "Roo.ContentPanel",
48 "name" : "fitToFrame",
50 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
51 "memberOf" : "Roo.ContentPanel",
55 "name" : "background",
57 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
58 "memberOf" : "Roo.ContentPanel",
64 "desc" : "A toolbar for this panel",
65 "memberOf" : "Roo.ContentPanel",
71 "desc" : "t) which region to put this panel on (when used with xtype constructors)",
72 "memberOf" : "Roo.ContentPanel",
84 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
85 "memberOf" : "Roo.ContentPanel",
91 "desc" : "The title for this panel",
92 "memberOf" : "Roo.ContentPanel",
98 "desc" : "Extra style to add to the content panel",
99 "memberOf" : "Roo.ContentPanel",
103 "name" : "autoCreate",
104 "type" : "Boolean/Object",
105 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
106 "memberOf" : "Roo.ContentPanel",
110 "name" : "fitContainer",
112 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
113 "memberOf" : "Roo.ContentPanel",
119 "desc" : "True if the panel can be closed/removed",
120 "memberOf" : "Roo.ContentPanel",
125 "type" : "String/Object",
126 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
127 "memberOf" : "Roo.ContentPanel",
131 "name" : "adjustments",
133 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
134 "memberOf" : "Roo.ContentPanel",
140 "desc" : "Calls {@link #setUrl} with this value",
141 "memberOf" : "Roo.ContentPanel",
146 "type" : "String/HTMLElement/Element",
147 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
148 "memberOf" : "Roo.ContentPanel",
155 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
157 "isConstructor" : false,
159 "memberOf" : "Roo.ContentPanel",
167 "type" : "Object/String/Function",
168 "desc" : "The url for this request or a function to call to get the url or a config object containing any of the following options:\n<pre><code>\npanel.load({\n url: \"your-url.php\",\n params: {param1: \"foo\", param2: \"bar\"}, // or a URL encoded string\n callback: yourFunction,\n scope: yourObject, //(optional scope)\n discardUrl: false,\n nocache: false,\n text: \"Loading...\",\n timeout: 30,\n scripts: false\n});\n</code></pre>\nThe only required property is <i>url</i>. The optional properties <i>nocache</i>, <i>text</i> and <i>scripts</i>\nare shorthand for <i>disableCaching</i>, <i>indicatorText</i> and <i>loadScripts</i> and are used to set their associated property on this panel UpdateManager instance.",
173 "type" : "String/Object",
174 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
180 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
184 "name" : "discardUrl",
186 "desc" : "(optional) By default when you execute an update the defaultUrl is changed to the last used URL. If true, it will not store the URL.",
193 "type" : "Roo.ContentPanel",
199 "name" : "getUpdateManager",
200 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
202 "isConstructor" : false,
204 "memberOf" : "Roo.ContentPanel",
213 "type" : "Roo.UpdateManager",
214 "desc" : "The UpdateManager"
219 "name" : "isClosable",
220 "desc" : "Returns true is this panel was configured to be closable",
222 "isConstructor" : false,
224 "memberOf" : "Roo.ContentPanel",
240 "desc" : "Destroys this panel",
242 "isConstructor" : false,
244 "memberOf" : "Roo.ContentPanel",
254 "desc" : "Returns this panel's element - used by regiosn to add.",
256 "isConstructor" : false,
258 "memberOf" : "Roo.ContentPanel",
267 "type" : "Roo.Element",
273 "name" : "setContent",
274 "desc" : "Updates this panel's element",
276 "isConstructor" : false,
278 "memberOf" : "Roo.ContentPanel",
287 "desc" : "The new content",
291 "name" : "loadScripts",
293 "desc" : "(optional) true to look for and process scripts",
301 "desc" : "Returns this panel's id",
303 "isConstructor" : false,
305 "memberOf" : "Roo.ContentPanel",
321 "desc" : "Adds a xtype elements to the panel - currently only supports Forms, View, JsonView.\n<pre><code>\n\nlayout.addxtype({\n xtype : 'Form',\n items: [ .... ]\n }\n);\n\n</code></pre>",
323 "isConstructor" : false,
325 "memberOf" : "Roo.ContentPanel",
334 "desc" : "Xtype definition of item to add.",
342 "desc" : "Force a content refresh from the URL specified in the {@link #setUrl} method.\n Will fail silently if the {@link #setUrl} method has not been called.\n This does not activate the panel, just updates its content.",
344 "isConstructor" : false,
346 "memberOf" : "Roo.ContentPanel",
356 "desc" : "Returns this panel's title",
358 "isConstructor" : false,
360 "memberOf" : "Roo.ContentPanel",
376 "desc" : "Set this panel's title",
378 "isConstructor" : false,
380 "memberOf" : "Roo.ContentPanel",
396 "name" : "getToolbar",
397 "desc" : "Returns the toolbar for this Panel if one was configured.",
399 "isConstructor" : false,
401 "memberOf" : "Roo.ContentPanel",
410 "type" : "Roo.Toolbar",
417 "desc" : "Set a URL to be used to load the content for this panel. When this panel is activated, the content will be loaded from that URL.",
419 "isConstructor" : false,
421 "memberOf" : "Roo.ContentPanel",
429 "type" : "String/Function",
430 "desc" : "The URL to load the content from or a function to call to get the URL",
435 "type" : "String/Object",
436 "desc" : "(optional) The string params for the update call or an object of the params. See {@link Roo.UpdateManager#update} for more details. (Defaults to null)",
442 "desc" : "(optional) Whether to only load the content once. If this is false it makes the Ajax call every time this panel is activated. (Defaults to false)",
449 "type" : "Roo.UpdateManager",
450 "desc" : "The UpdateManager"
455 "name" : "purgeListeners",
456 "desc" : "Removes all listeners for this object",
458 "isConstructor" : false,
460 "memberOf" : "Roo.util.Observable",
470 "desc" : "Appends an event handler to this element (shorthand for addListener)",
472 "isConstructor" : false,
474 "memberOf" : "Roo.util.Observable",
481 "name" : "eventName",
483 "desc" : "The type of event to listen for",
489 "desc" : "The method the event invokes",
495 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
501 "desc" : "(optional)",
509 "desc" : "Removes a listener (shorthand for removeListener)",
511 "isConstructor" : false,
513 "memberOf" : "Roo.util.Observable",
520 "name" : "eventName",
522 "desc" : "The type of event to listen for",
528 "desc" : "The handler to remove",
534 "desc" : "(optional) The scope (this object) for the handler",
541 "name" : "addEvents",
542 "desc" : "Used to define events on this Observable",
544 "isConstructor" : false,
546 "memberOf" : "Roo.util.Observable",
555 "desc" : "The object with the events defined",
562 "name" : "releaseCapture",
563 "desc" : "Removes <b>all</b> added captures from the Observable.",
565 "isConstructor" : false,
567 "memberOf" : "Roo.util.Observable",
575 "type" : "Observable",
576 "desc" : "The Observable to release",
583 "name" : "removeListener",
584 "desc" : "Removes a listener",
586 "isConstructor" : false,
588 "memberOf" : "Roo.util.Observable",
595 "name" : "eventName",
597 "desc" : "The type of event to listen for",
603 "desc" : "The handler to remove",
609 "desc" : "(optional) The scope (this object) for the handler",
616 "name" : "fireEvent",
617 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
619 "isConstructor" : false,
621 "memberOf" : "Roo.util.Observable",
628 "name" : "eventName",
635 "type" : "Object...",
636 "desc" : "Variable number of parameters are passed to handlers",
644 "desc" : "returns false if any of the handlers return false otherwise it returns true"
649 "name" : "hasListener",
650 "desc" : "Checks to see if this object has any listeners for a specified event",
652 "isConstructor" : false,
654 "memberOf" : "Roo.util.Observable",
661 "name" : "eventName",
663 "desc" : "The name of the event to check for",
671 "desc" : "True if the event is being listened for, else false"
677 "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.",
679 "isConstructor" : false,
681 "memberOf" : "Roo.util.Observable",
689 "type" : "Observable",
690 "desc" : "The Observable to capture",
696 "desc" : "The function to call",
702 "desc" : "(optional) The scope (this object) for the fn",
709 "name" : "addListener",
710 "desc" : "Appends an event handler to this component",
712 "isConstructor" : false,
714 "memberOf" : "Roo.util.Observable",
721 "name" : "eventName",
723 "desc" : "The type of event to listen for",
729 "desc" : "The method the event invokes",
735 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
741 "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>",
750 "name" : "deactivate",
751 "desc" : "Fires when this panel is activated.",
752 "memberOf" : "Roo.ContentPanel",
760 "type" : "Roo.ContentPanel",
769 "desc" : "Fires when this panel is resized if fitToFrame is true.",
770 "memberOf" : "Roo.ContentPanel",
778 "type" : "Roo.ContentPanel",
785 "desc" : "The width after any component adjustments",
791 "desc" : "The height after any component adjustments",
799 "desc" : "Fires when this tab is created",
800 "memberOf" : "Roo.ContentPanel",
808 "type" : "Roo.ContentPanel",
817 "desc" : "Fires when this panel is activated.",
818 "memberOf" : "Roo.ContentPanel",
826 "type" : "Roo.ContentPanel",