2 "name" : "Roo.TreePanel",
7 "desc" : "Create a new TreePanel. - defaults to fit/scoll contents.",
11 "memberOf" : "TreePanel",
19 "type" : "String/Object",
20 "desc" : "A string to set only the panel's title, or a config object",
30 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
31 "memberOf" : "Roo.ContentPanel",
38 "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>",
39 "memberOf" : "Roo.util.Observable",
44 "name" : "autoScroll",
46 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
47 "memberOf" : "Roo.ContentPanel",
52 "name" : "fitToFrame",
54 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
55 "memberOf" : "Roo.ContentPanel",
60 "name" : "background",
62 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
63 "memberOf" : "Roo.ContentPanel",
70 "desc" : "A toolbar for this panel",
71 "memberOf" : "Roo.ContentPanel",
78 "desc" : "which region to put this panel on (when used with xtype constructors)",
79 "memberOf" : "Roo.ContentPanel",
91 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
92 "memberOf" : "Roo.ContentPanel",
99 "desc" : "The title for this panel",
100 "memberOf" : "Roo.ContentPanel",
105 "name" : "autoCreate",
106 "type" : "Boolean/Object",
107 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
108 "memberOf" : "Roo.ContentPanel",
113 "name" : "fitContainer",
115 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
116 "memberOf" : "Roo.ContentPanel",
123 "desc" : "True if the panel can be closed/removed",
124 "memberOf" : "Roo.ContentPanel",
130 "type" : "String/Object",
131 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
132 "memberOf" : "Roo.ContentPanel",
138 "type" : "Roo.tree.TreePanel",
139 "desc" : "The tree TreePanel, with config etc.",
145 "name" : "adjustments",
147 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
148 "memberOf" : "Roo.ContentPanel",
155 "desc" : "Calls {@link #setUrl} with this value",
156 "memberOf" : "Roo.ContentPanel",
162 "type" : "String/HTMLElement/Element",
163 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
164 "memberOf" : "Roo.ContentPanel",
172 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
174 "isConstructor" : false,
176 "memberOf" : "Roo.ContentPanel",
184 "type" : "Object/String/Function",
185 "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.",
190 "type" : "String/Object",
191 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
197 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
201 "name" : "discardUrl",
203 "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.",
210 "type" : "Roo.ContentPanel",
216 "name" : "getUpdateManager",
217 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
219 "isConstructor" : false,
221 "memberOf" : "Roo.ContentPanel",
231 "type" : "Roo.UpdateManager",
232 "desc" : "The UpdateManager"
237 "name" : "isClosable",
238 "desc" : "Returns true is this panel was configured to be closable",
240 "isConstructor" : false,
242 "memberOf" : "Roo.ContentPanel",
259 "desc" : "Destroys this panel",
261 "isConstructor" : false,
263 "memberOf" : "Roo.ContentPanel",
275 "desc" : "Returns this panel's element - used by regiosn to add.",
277 "isConstructor" : false,
279 "memberOf" : "Roo.ContentPanel",
289 "type" : "Roo.Element",
295 "name" : "setContent",
296 "desc" : "Updates this panel's element",
298 "isConstructor" : false,
300 "memberOf" : "Roo.ContentPanel",
309 "desc" : "The new content",
313 "name" : "loadScripts",
315 "desc" : "(optional) true to look for and process scripts",
324 "desc" : "Returns this panel's id",
326 "isConstructor" : false,
328 "memberOf" : "Roo.ContentPanel",
345 "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>",
347 "isConstructor" : false,
349 "memberOf" : "Roo.ContentPanel",
358 "desc" : "Xtype definition of item to add.",
367 "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.",
369 "isConstructor" : false,
371 "memberOf" : "Roo.ContentPanel",
383 "desc" : "Returns this panel's title",
385 "isConstructor" : false,
387 "memberOf" : "Roo.ContentPanel",
404 "desc" : "Set this panel's title",
406 "isConstructor" : false,
408 "memberOf" : "Roo.ContentPanel",
425 "name" : "getToolbar",
426 "desc" : "Returns the toolbar for this Panel if one was configured.",
428 "isConstructor" : false,
430 "memberOf" : "Roo.ContentPanel",
440 "type" : "Roo.Toolbar",
447 "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.",
449 "isConstructor" : false,
451 "memberOf" : "Roo.ContentPanel",
459 "type" : "String/Function",
460 "desc" : "The URL to load the content from or a function to call to get the URL",
465 "type" : "String/Object",
466 "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)",
472 "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)",
479 "type" : "Roo.UpdateManager",
480 "desc" : "The UpdateManager"
485 "name" : "purgeListeners",
486 "desc" : "Removes all listeners for this object",
488 "isConstructor" : false,
490 "memberOf" : "Roo.util.Observable",
502 "desc" : "Appends an event handler to this element (shorthand for addListener)",
504 "isConstructor" : false,
506 "memberOf" : "Roo.util.Observable",
513 "name" : "eventName",
515 "desc" : "The type of event to listen for",
521 "desc" : "The method the event invokes",
527 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
533 "desc" : "(optional)",
542 "desc" : "Removes a listener (shorthand for removeListener)",
544 "isConstructor" : false,
546 "memberOf" : "Roo.util.Observable",
553 "name" : "eventName",
555 "desc" : "The type of event to listen for",
561 "desc" : "The handler to remove",
567 "desc" : "(optional) The scope (this object) for the handler",
575 "name" : "addEvents",
576 "desc" : "Used to define events on this Observable",
578 "isConstructor" : false,
580 "memberOf" : "Roo.util.Observable",
589 "desc" : "The object with the events defined",
597 "name" : "releaseCapture",
598 "desc" : "Removes <b>all</b> added captures from the Observable.",
600 "isConstructor" : false,
602 "memberOf" : "Roo.util.Observable",
610 "type" : "Observable",
611 "desc" : "The Observable to release",
619 "name" : "removeListener",
620 "desc" : "Removes a listener",
622 "isConstructor" : false,
624 "memberOf" : "Roo.util.Observable",
631 "name" : "eventName",
633 "desc" : "The type of event to listen for",
639 "desc" : "The handler to remove",
645 "desc" : "(optional) The scope (this object) for the handler",
653 "name" : "fireEvent",
654 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
656 "isConstructor" : false,
658 "memberOf" : "Roo.util.Observable",
665 "name" : "eventName",
672 "type" : "Object...",
673 "desc" : "Variable number of parameters are passed to handlers",
681 "desc" : "returns false if any of the handlers return false otherwise it returns true"
686 "name" : "hasListener",
687 "desc" : "Checks to see if this object has any listeners for a specified event",
689 "isConstructor" : false,
691 "memberOf" : "Roo.util.Observable",
698 "name" : "eventName",
700 "desc" : "The name of the event to check for",
708 "desc" : "True if the event is being listened for, else false"
714 "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.",
716 "isConstructor" : false,
718 "memberOf" : "Roo.util.Observable",
726 "type" : "Observable",
727 "desc" : "The Observable to capture",
733 "desc" : "The function to call",
739 "desc" : "(optional) The scope (this object) for the fn",
747 "name" : "addListener",
748 "desc" : "Appends an event handler to this component",
750 "isConstructor" : false,
752 "memberOf" : "Roo.util.Observable",
759 "name" : "eventName",
761 "desc" : "The type of event to listen for",
767 "desc" : "The method the event invokes",
773 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
779 "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 "name" : "deactivate",
790 "desc" : "Fires when this panel is activated.",
791 "memberOf" : "Roo.ContentPanel",
799 "type" : "Roo.ContentPanel",
809 "desc" : "Fires when this panel is resized if fitToFrame is true.",
810 "memberOf" : "Roo.ContentPanel",
818 "type" : "Roo.ContentPanel",
825 "desc" : "The width after any component adjustments",
831 "desc" : "The height after any component adjustments",
840 "desc" : "Fires when this tab is created",
841 "memberOf" : "Roo.ContentPanel",
849 "type" : "Roo.ContentPanel",
859 "desc" : "Fires when this panel is activated.",
860 "memberOf" : "Roo.ContentPanel",
868 "type" : "Roo.ContentPanel",