2 "name" : "Roo.ContentPanel",
9 "Roo.NestedLayoutPanel",
20 "desc" : "A basic ContentPanel element.",
21 "isSingleton" : false,
25 "isBuilderTop" : true,
26 "memberOf" : "ContentPanel",
34 "type" : "String/HTMLElement/Roo.Element",
35 "desc" : "The container element for this panel",
40 "type" : "String/Object",
41 "desc" : "A string to set only the title or a config object",
47 "desc" : "(optional) Set the HTML content for this panel",
53 "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)",
64 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
70 "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>",
71 "memberOf" : "Roo.util.Observable"
74 "name" : "autoScroll",
76 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
80 "name" : "fitToFrame",
82 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
86 "name" : "background",
88 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
93 "type" : "Roo.Toolbar",
94 "desc" : "A toolbar for this panel",
100 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
106 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
111 "type" : "Roo.menu.Menu",
112 "desc" : "popup menu",
118 "desc" : "The title for this panel",
124 "desc" : "Extra style to add to the content panel",
128 "name" : "autoCreate",
129 "type" : "Boolean|Object",
130 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
134 "name" : "fitContainer",
136 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
142 "desc" : "True if the panel can be closed/removed",
147 "type" : "String|Object",
148 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
152 "name" : "adjustments",
154 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
160 "desc" : "Calls {@link #setUrl} with this value",
165 "type" : "String|HTMLElement|Element",
166 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
174 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
175 "sig" : "(url, params, callback, discardUrl)",
179 "isConstructor" : false,
190 "type" : "Object/String/Function",
191 "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.",
196 "type" : "String/Object",
197 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
203 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
207 "name" : "discardUrl",
209 "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.",
216 "type" : "Roo.ContentPanel",
222 "name" : "getUpdateManager",
224 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
225 "sig" : "()\n{\n\n}",
229 "isConstructor" : false,
241 "type" : "Roo.UpdateManager",
242 "desc" : "The UpdateManager"
247 "name" : "isClosable",
249 "desc" : "Returns true is this panel was configured to be closable",
250 "sig" : "()\n{\n\n}",
254 "isConstructor" : false,
274 "desc" : "Destroys this panel",
275 "sig" : "()\n{\n\n}",
279 "isConstructor" : false,
293 "desc" : "Returns this panel's element - used by regiosn to add.",
294 "sig" : "()\n{\n\n}",
298 "isConstructor" : false,
310 "type" : "Roo.Element",
316 "name" : "setContent",
318 "desc" : "Updates this panel's element",
319 "sig" : "(content, loadScripts)",
323 "isConstructor" : false,
335 "desc" : "The new content",
339 "name" : "loadScripts",
341 "desc" : "(optional) true to look for and process scripts",
350 "desc" : "Returns this panel's id",
351 "sig" : "()\n{\n\n}",
355 "isConstructor" : false,
375 "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>",
380 "isConstructor" : false,
392 "desc" : "Xtype definition of item to add.",
401 "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.",
402 "sig" : "()\n{\n\n}",
406 "isConstructor" : false,
420 "desc" : "Returns this panel's title",
421 "sig" : "()\n{\n\n}",
425 "isConstructor" : false,
445 "desc" : "Set this panel's title",
450 "isConstructor" : false,
469 "name" : "getToolbar",
471 "desc" : "Returns the toolbar for this Panel if one was configured.",
472 "sig" : "()\n{\n\n}",
476 "isConstructor" : false,
488 "type" : "Roo.Toolbar",
496 "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.",
497 "sig" : "(url, params, loadOnce)",
501 "isConstructor" : false,
512 "type" : "String/Function",
513 "desc" : "The URL to load the content from or a function to call to get the URL",
518 "type" : "String/Object",
519 "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)",
525 "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)",
532 "type" : "Roo.UpdateManager",
533 "desc" : "The UpdateManager"
538 "name" : "purgeListeners",
540 "desc" : "Removes all listeners for this object",
541 "sig" : "()\n{\n\n}",
543 "memberOf" : "Roo.util.Observable",
545 "isConstructor" : false,
559 "desc" : "Appends an event handler to this element (shorthand for addListener)",
560 "sig" : "(eventName, handler, scope, options)",
562 "memberOf" : "Roo.util.Observable",
564 "isConstructor" : false,
574 "name" : "eventName",
576 "desc" : "The type of event to listen for",
582 "desc" : "The method the event invokes",
588 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
594 "desc" : "(optional)",
603 "desc" : "Removes a listener (shorthand for removeListener)",
604 "sig" : "(eventName, handler, scope)",
606 "memberOf" : "Roo.util.Observable",
608 "isConstructor" : false,
618 "name" : "eventName",
620 "desc" : "The type of event to listen for",
626 "desc" : "The handler to remove",
632 "desc" : "(optional) The scope (this object) for the handler",
639 "name" : "addEvents",
641 "desc" : "Used to define events on this Observable",
644 "memberOf" : "Roo.util.Observable",
646 "isConstructor" : false,
658 "desc" : "The object with the events defined",
665 "name" : "releaseCapture",
667 "desc" : "Removes <b>all</b> added captures from the Observable.",
670 "memberOf" : "Roo.util.Observable",
672 "isConstructor" : false,
683 "type" : "Observable",
684 "desc" : "The Observable to release",
691 "name" : "removeListener",
693 "desc" : "Removes a listener",
694 "sig" : "(eventName, handler, scope)",
696 "memberOf" : "Roo.util.Observable",
698 "isConstructor" : false,
708 "name" : "eventName",
710 "desc" : "The type of event to listen for",
716 "desc" : "The handler to remove",
722 "desc" : "(optional) The scope (this object) for the handler",
729 "name" : "fireEvent",
731 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
732 "sig" : "(eventName, args)",
734 "memberOf" : "Roo.util.Observable",
736 "isConstructor" : false,
746 "name" : "eventName",
753 "type" : "Object...",
754 "desc" : "Variable number of parameters are passed to handlers",
762 "desc" : "returns false if any of the handlers return false otherwise it returns true"
767 "name" : "hasListener",
769 "desc" : "Checks to see if this object has any listeners for a specified event",
770 "sig" : "(eventName)",
772 "memberOf" : "Roo.util.Observable",
774 "isConstructor" : false,
784 "name" : "eventName",
786 "desc" : "The name of the event to check for",
794 "desc" : "True if the event is being listened for, else false"
801 "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.",
802 "sig" : "(o, fn, scope)",
804 "memberOf" : "Roo.util.Observable",
806 "isConstructor" : false,
817 "type" : "Observable",
818 "desc" : "The Observable to capture",
824 "desc" : "The function to call",
830 "desc" : "(optional) The scope (this object) for the fn",
837 "name" : "addListener",
839 "desc" : "Appends an event handler to this component",
840 "sig" : "(eventName, handler, scope, options)",
842 "memberOf" : "Roo.util.Observable",
844 "isConstructor" : false,
854 "name" : "eventName",
856 "desc" : "The type of event to listen for",
862 "desc" : "The method the event invokes",
868 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
874 "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>",
883 "name" : "deactivate",
885 "desc" : "Fires when this panel is activated.",
886 "sig" : "function (_self)\n{\n\n}",
895 "type" : "Roo.ContentPanel",
905 "desc" : "Fires when this panel is resized if fitToFrame is true.",
906 "sig" : "function (_self, width, height)\n{\n\n}",
915 "type" : "Roo.ContentPanel",
922 "desc" : "The width after any component adjustments",
928 "desc" : "The height after any component adjustments",
937 "desc" : "Fires when this tab is created",
938 "sig" : "function (_self)\n{\n\n}",
947 "type" : "Roo.ContentPanel",
957 "desc" : "Fires when this panel is activated.",
958 "sig" : "function (_self)\n{\n\n}",
967 "type" : "Roo.ContentPanel",