2 "name" : "Roo.ContentPanel",
9 "Roo.NestedLayoutPanel",
24 "desc" : "A basic ContentPanel element.",
25 "isSingleton" : false,
29 "isBuilderTop" : false,
30 "memberOf" : "ContentPanel",
38 "type" : "String/HTMLElement/Roo.Element",
39 "desc" : "The container element for this panel",
44 "type" : "String/Object",
45 "desc" : "A string to set only the title or a config object",
51 "desc" : "(optional) Set the HTML content for this panel",
57 "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)",
68 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
76 "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>",
77 "memberOf" : "Roo.util.Observable",
82 "name" : "autoScroll",
84 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
90 "name" : "fitToFrame",
92 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
98 "name" : "background",
100 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
102 "isOptional" : false,
107 "type" : "Roo.Toolbar",
108 "desc" : "A toolbar for this panel",
110 "isOptional" : false,
116 "desc" : "t) which region to put this panel on (when used with xtype constructor",
118 "isOptional" : false,
130 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
132 "isOptional" : false,
137 "type" : "Roo.menu.Menu",
138 "desc" : "popup menu",
140 "isOptional" : false,
146 "desc" : "The title for this panel",
148 "isOptional" : false,
154 "desc" : "Extra style to add to the content panel",
156 "isOptional" : false,
160 "name" : "autoCreate",
161 "type" : "Boolean|Object",
162 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
164 "isOptional" : false,
168 "name" : "fitContainer",
170 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
172 "isOptional" : false,
178 "desc" : "True if the panel can be closed/removed",
180 "isOptional" : false,
185 "type" : "String|Object",
186 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
188 "isOptional" : false,
192 "name" : "adjustments",
194 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
196 "isOptional" : false,
202 "desc" : "Calls {@link #setUrl} with this value",
204 "isOptional" : false,
209 "type" : "String|HTMLElement|Element",
210 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
212 "isOptional" : false,
220 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
221 "sig" : "(url, params, callback, discardUrl)",
225 "isConstructor" : false,
236 "type" : "Object/String/Function",
237 "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.",
242 "type" : "String/Object",
243 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
249 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
253 "name" : "discardUrl",
255 "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.",
262 "type" : "Roo.ContentPanel",
268 "name" : "getUpdateManager",
270 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
271 "sig" : "()\n{\n\n}",
275 "isConstructor" : false,
287 "type" : "Roo.UpdateManager",
288 "desc" : "The UpdateManager"
293 "name" : "isClosable",
295 "desc" : "Returns true is this panel was configured to be closable",
296 "sig" : "()\n{\n\n}",
300 "isConstructor" : false,
320 "desc" : "Destroys this panel",
321 "sig" : "()\n{\n\n}",
325 "isConstructor" : false,
339 "desc" : "Returns this panel's element - used by regiosn to add.",
340 "sig" : "()\n{\n\n}",
344 "isConstructor" : false,
356 "type" : "Roo.Element",
362 "name" : "setContent",
364 "desc" : "Updates this panel's element",
365 "sig" : "(content, loadScripts)",
369 "isConstructor" : false,
381 "desc" : "The new content",
385 "name" : "loadScripts",
387 "desc" : "(optional) true to look for and process scripts",
396 "desc" : "Returns this panel's id",
397 "sig" : "()\n{\n\n}",
401 "isConstructor" : false,
421 "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>",
426 "isConstructor" : false,
438 "desc" : "Xtype definition of item to add.",
447 "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.",
448 "sig" : "()\n{\n\n}",
452 "isConstructor" : false,
466 "desc" : "Returns this panel's title",
467 "sig" : "()\n{\n\n}",
471 "isConstructor" : false,
491 "desc" : "Set this panel's title",
496 "isConstructor" : false,
515 "name" : "getToolbar",
517 "desc" : "Returns the toolbar for this Panel if one was configured.",
518 "sig" : "()\n{\n\n}",
522 "isConstructor" : false,
534 "type" : "Roo.Toolbar",
542 "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.",
543 "sig" : "(url, params, loadOnce)",
547 "isConstructor" : false,
558 "type" : "String/Function",
559 "desc" : "The URL to load the content from or a function to call to get the URL",
564 "type" : "String/Object",
565 "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)",
571 "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)",
578 "type" : "Roo.UpdateManager",
579 "desc" : "The UpdateManager"
584 "name" : "purgeListeners",
586 "desc" : "Removes all listeners for this object",
587 "sig" : "()\n{\n\n}",
589 "memberOf" : "Roo.util.Observable",
591 "isConstructor" : false,
605 "desc" : "Appends an event handler to this element (shorthand for addListener)",
606 "sig" : "(eventName, handler, scope, options)",
608 "memberOf" : "Roo.util.Observable",
610 "isConstructor" : false,
620 "name" : "eventName",
622 "desc" : "The type of event to listen for",
628 "desc" : "The method the event invokes",
634 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
640 "desc" : "(optional)",
649 "desc" : "Removes a listener (shorthand for removeListener)",
650 "sig" : "(eventName, handler, scope)",
652 "memberOf" : "Roo.util.Observable",
654 "isConstructor" : false,
664 "name" : "eventName",
666 "desc" : "The type of event to listen for",
672 "desc" : "The handler to remove",
678 "desc" : "(optional) The scope (this object) for the handler",
685 "name" : "addEvents",
687 "desc" : "Used to define events on this Observable",
690 "memberOf" : "Roo.util.Observable",
692 "isConstructor" : false,
704 "desc" : "The object with the events defined",
711 "name" : "releaseCapture",
713 "desc" : "Removes <b>all</b> added captures from the Observable.",
716 "memberOf" : "Roo.util.Observable",
718 "isConstructor" : false,
729 "type" : "Observable",
730 "desc" : "The Observable to release",
737 "name" : "removeListener",
739 "desc" : "Removes a listener",
740 "sig" : "(eventName, handler, scope)",
742 "memberOf" : "Roo.util.Observable",
744 "isConstructor" : false,
754 "name" : "eventName",
756 "desc" : "The type of event to listen for",
762 "desc" : "The handler to remove",
768 "desc" : "(optional) The scope (this object) for the handler",
775 "name" : "fireEvent",
777 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
778 "sig" : "(eventName, args)",
780 "memberOf" : "Roo.util.Observable",
782 "isConstructor" : false,
792 "name" : "eventName",
799 "type" : "Object...",
800 "desc" : "Variable number of parameters are passed to handlers",
808 "desc" : "returns false if any of the handlers return false otherwise it returns true"
813 "name" : "hasListener",
815 "desc" : "Checks to see if this object has any listeners for a specified event",
816 "sig" : "(eventName)",
818 "memberOf" : "Roo.util.Observable",
820 "isConstructor" : false,
830 "name" : "eventName",
832 "desc" : "The name of the event to check for",
840 "desc" : "True if the event is being listened for, else false"
847 "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.",
848 "sig" : "(o, fn, scope)",
850 "memberOf" : "Roo.util.Observable",
852 "isConstructor" : false,
863 "type" : "Observable",
864 "desc" : "The Observable to capture",
870 "desc" : "The function to call",
876 "desc" : "(optional) The scope (this object) for the fn",
883 "name" : "addListener",
885 "desc" : "Appends an event handler to this component",
886 "sig" : "(eventName, handler, scope, options)",
888 "memberOf" : "Roo.util.Observable",
890 "isConstructor" : false,
900 "name" : "eventName",
902 "desc" : "The type of event to listen for",
908 "desc" : "The method the event invokes",
914 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
920 "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>",
929 "name" : "deactivate",
931 "desc" : "Fires when this panel is activated.",
932 "sig" : "function (_self)\n{\n\n}",
941 "type" : "Roo.ContentPanel",
951 "desc" : "Fires when this panel is resized if fitToFrame is true.",
952 "sig" : "function (_self, width, height)\n{\n\n}",
961 "type" : "Roo.ContentPanel",
968 "desc" : "The width after any component adjustments",
974 "desc" : "The height after any component adjustments",
983 "desc" : "Fires when this tab is created",
984 "sig" : "function (_self)\n{\n\n}",
993 "type" : "Roo.ContentPanel",
1001 "name" : "activate",
1002 "type" : "function",
1003 "desc" : "Fires when this panel is activated.",
1004 "sig" : "function (_self)\n{\n\n}",
1013 "type" : "Roo.ContentPanel",
1015 "isOptional" : false