2 "name" : "Roo.TreePanel",
8 "desc" : "Treepanel component",
12 "memberOf" : "TreePanel",
20 "type" : "String/Object",
21 "desc" : "A string to set only the panel's title, or a config object",
32 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
33 "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"
42 "name" : "autoScroll",
44 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
45 "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"
54 "name" : "background",
56 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
57 "memberOf" : "Roo.ContentPanel"
61 "type" : "Roo.Toolbar",
62 "desc" : "A toolbar for this panel",
63 "memberOf" : "Roo.ContentPanel"
68 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
69 "memberOf" : "Roo.ContentPanel"
74 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
75 "memberOf" : "Roo.ContentPanel"
79 "type" : "Roo.menu.Menu",
80 "desc" : "popup menu",
81 "memberOf" : "Roo.ContentPanel"
86 "desc" : "The title for this panel",
87 "memberOf" : "Roo.ContentPanel"
92 "desc" : "Extra style to add to the content panel",
93 "memberOf" : "Roo.ContentPanel"
96 "name" : "autoCreate",
97 "type" : "Boolean|Object",
98 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
99 "memberOf" : "Roo.ContentPanel"
102 "name" : "fitContainer",
104 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
105 "memberOf" : "Roo.ContentPanel"
110 "desc" : "True if the panel can be closed/removed",
111 "memberOf" : "Roo.ContentPanel"
115 "type" : "String|Object",
116 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
117 "memberOf" : "Roo.ContentPanel"
120 "name" : "adjustments",
122 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
123 "memberOf" : "Roo.ContentPanel"
128 "desc" : "Calls {@link #setUrl} with this value",
129 "memberOf" : "Roo.ContentPanel"
133 "type" : "String|HTMLElement|Element",
134 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
135 "memberOf" : "Roo.ContentPanel"
142 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
143 "sig" : "(url, params, callback, discardUrl)",
145 "memberOf" : "Roo.ContentPanel",
147 "isConstructor" : false,
158 "type" : "Object/String/Function",
159 "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.",
164 "type" : "String/Object",
165 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
171 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
175 "name" : "discardUrl",
177 "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.",
184 "type" : "Roo.ContentPanel",
190 "name" : "getUpdateManager",
192 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
193 "sig" : "()\n{\n\n}",
195 "memberOf" : "Roo.ContentPanel",
197 "isConstructor" : false,
209 "type" : "Roo.UpdateManager",
210 "desc" : "The UpdateManager"
215 "name" : "isClosable",
217 "desc" : "Returns true is this panel was configured to be closable",
218 "sig" : "()\n{\n\n}",
220 "memberOf" : "Roo.ContentPanel",
222 "isConstructor" : false,
242 "desc" : "Destroys this panel",
243 "sig" : "()\n{\n\n}",
245 "memberOf" : "Roo.ContentPanel",
247 "isConstructor" : false,
261 "desc" : "Returns this panel's element - used by regiosn to add.",
262 "sig" : "()\n{\n\n}",
264 "memberOf" : "Roo.ContentPanel",
266 "isConstructor" : false,
278 "type" : "Roo.Element",
284 "name" : "setContent",
286 "desc" : "Updates this panel's element",
287 "sig" : "(content, loadScripts)",
289 "memberOf" : "Roo.ContentPanel",
291 "isConstructor" : false,
303 "desc" : "The new content",
307 "name" : "loadScripts",
309 "desc" : "(optional) true to look for and process scripts",
318 "desc" : "Returns this panel's id",
319 "sig" : "()\n{\n\n}",
321 "memberOf" : "Roo.ContentPanel",
323 "isConstructor" : false,
343 "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>",
346 "memberOf" : "Roo.ContentPanel",
348 "isConstructor" : false,
360 "desc" : "Xtype definition of item to add.",
369 "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.",
370 "sig" : "()\n{\n\n}",
372 "memberOf" : "Roo.ContentPanel",
374 "isConstructor" : false,
388 "desc" : "Returns this panel's title",
389 "sig" : "()\n{\n\n}",
391 "memberOf" : "Roo.ContentPanel",
393 "isConstructor" : false,
413 "desc" : "Set this panel's title",
416 "memberOf" : "Roo.ContentPanel",
418 "isConstructor" : false,
437 "name" : "getToolbar",
439 "desc" : "Returns the toolbar for this Panel if one was configured.",
440 "sig" : "()\n{\n\n}",
442 "memberOf" : "Roo.ContentPanel",
444 "isConstructor" : false,
456 "type" : "Roo.Toolbar",
464 "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.",
465 "sig" : "(url, params, loadOnce)",
467 "memberOf" : "Roo.ContentPanel",
469 "isConstructor" : false,
480 "type" : "String/Function",
481 "desc" : "The URL to load the content from or a function to call to get the URL",
486 "type" : "String/Object",
487 "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)",
493 "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)",
500 "type" : "Roo.UpdateManager",
501 "desc" : "The UpdateManager"
506 "name" : "purgeListeners",
508 "desc" : "Removes all listeners for this object",
509 "sig" : "()\n{\n\n}",
511 "memberOf" : "Roo.util.Observable",
513 "isConstructor" : false,
527 "desc" : "Appends an event handler to this element (shorthand for addListener)",
528 "sig" : "(eventName, handler, scope, options)",
530 "memberOf" : "Roo.util.Observable",
532 "isConstructor" : false,
542 "name" : "eventName",
544 "desc" : "The type of event to listen for",
550 "desc" : "The method the event invokes",
556 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
562 "desc" : "(optional)",
571 "desc" : "Removes a listener (shorthand for removeListener)",
572 "sig" : "(eventName, handler, scope)",
574 "memberOf" : "Roo.util.Observable",
576 "isConstructor" : false,
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" : "addEvents",
609 "desc" : "Used to define events on this Observable",
612 "memberOf" : "Roo.util.Observable",
614 "isConstructor" : false,
626 "desc" : "The object with the events defined",
633 "name" : "releaseCapture",
635 "desc" : "Removes <b>all</b> added captures from the Observable.",
638 "memberOf" : "Roo.util.Observable",
640 "isConstructor" : false,
651 "type" : "Observable",
652 "desc" : "The Observable to release",
659 "name" : "removeListener",
661 "desc" : "Removes a listener",
662 "sig" : "(eventName, handler, scope)",
664 "memberOf" : "Roo.util.Observable",
666 "isConstructor" : false,
676 "name" : "eventName",
678 "desc" : "The type of event to listen for",
684 "desc" : "The handler to remove",
690 "desc" : "(optional) The scope (this object) for the handler",
697 "name" : "fireEvent",
699 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
700 "sig" : "(eventName, args)",
702 "memberOf" : "Roo.util.Observable",
704 "isConstructor" : false,
714 "name" : "eventName",
721 "type" : "Object...",
722 "desc" : "Variable number of parameters are passed to handlers",
730 "desc" : "returns false if any of the handlers return false otherwise it returns true"
735 "name" : "hasListener",
737 "desc" : "Checks to see if this object has any listeners for a specified event",
738 "sig" : "(eventName)",
740 "memberOf" : "Roo.util.Observable",
742 "isConstructor" : false,
752 "name" : "eventName",
754 "desc" : "The name of the event to check for",
762 "desc" : "True if the event is being listened for, else false"
769 "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.",
770 "sig" : "(o, fn, scope)",
772 "memberOf" : "Roo.util.Observable",
774 "isConstructor" : false,
785 "type" : "Observable",
786 "desc" : "The Observable to capture",
792 "desc" : "The function to call",
798 "desc" : "(optional) The scope (this object) for the fn",
805 "name" : "addListener",
807 "desc" : "Appends an event handler to this component",
808 "sig" : "(eventName, handler, scope, options)",
810 "memberOf" : "Roo.util.Observable",
812 "isConstructor" : false,
822 "name" : "eventName",
824 "desc" : "The type of event to listen for",
830 "desc" : "The method the event invokes",
836 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
842 "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>",
851 "name" : "deactivate",
853 "desc" : "Fires when this panel is activated.",
854 "sig" : "function (_self)\n{\n\n}",
855 "memberOf" : "Roo.ContentPanel",
863 "type" : "Roo.ContentPanel",
873 "desc" : "Fires when this panel is resized if fitToFrame is true.",
874 "sig" : "function (_self, width, height)\n{\n\n}",
875 "memberOf" : "Roo.ContentPanel",
883 "type" : "Roo.ContentPanel",
890 "desc" : "The width after any component adjustments",
896 "desc" : "The height after any component adjustments",
905 "desc" : "Fires when this tab is created",
906 "sig" : "function (_self)\n{\n\n}",
907 "memberOf" : "Roo.ContentPanel",
915 "type" : "Roo.ContentPanel",
925 "desc" : "Fires when this panel is activated.",
926 "sig" : "function (_self)\n{\n\n}",
927 "memberOf" : "Roo.ContentPanel",
935 "type" : "Roo.ContentPanel",