2 "name" : "Roo.ContentPanel",
8 "Roo.NestedLayoutPanel",
11 "desc" : "A basic ContentPanel element.",
12 "isSingleton" : false,
15 "memberOf" : "ContentPanel",
23 "type" : "String/HTMLElement/Roo.Element",
24 "desc" : "The container element for this panel",
29 "type" : "String/Object",
30 "desc" : "A string to set only the title or a config object",
36 "desc" : "(optional) Set the HTML content for this panel",
42 "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)",
53 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
59 "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>",
60 "memberOf" : "Roo.util.Observable"
63 "name" : "autoScroll",
65 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
69 "name" : "fitToFrame",
71 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
75 "name" : "background",
77 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
82 "type" : "Roo.Toolbar",
83 "desc" : "A toolbar for this panel",
89 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
95 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
100 "type" : "Roo.menu.Menu",
101 "desc" : "popup menu",
107 "desc" : "The title for this panel",
113 "desc" : "Extra style to add to the content panel",
117 "name" : "autoCreate",
118 "type" : "Boolean|Object",
119 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
123 "name" : "fitContainer",
125 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
131 "desc" : "True if the panel can be closed/removed",
136 "type" : "String|Object",
137 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
141 "name" : "adjustments",
143 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
149 "desc" : "Calls {@link #setUrl} with this value",
154 "type" : "String|HTMLElement|Element",
155 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
163 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
164 "sig" : "(url, params, callback, discardUrl)",
168 "isConstructor" : false,
179 "type" : "Object/String/Function",
180 "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.",
185 "type" : "String/Object",
186 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
192 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
196 "name" : "discardUrl",
198 "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.",
205 "type" : "Roo.ContentPanel",
211 "name" : "getUpdateManager",
213 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
214 "sig" : "()\n{\n\n}",
218 "isConstructor" : false,
230 "type" : "Roo.UpdateManager",
231 "desc" : "The UpdateManager"
236 "name" : "isClosable",
238 "desc" : "Returns true is this panel was configured to be closable",
239 "sig" : "()\n{\n\n}",
243 "isConstructor" : false,
263 "desc" : "Destroys this panel",
264 "sig" : "()\n{\n\n}",
268 "isConstructor" : false,
282 "desc" : "Returns this panel's element - used by regiosn to add.",
283 "sig" : "()\n{\n\n}",
287 "isConstructor" : false,
299 "type" : "Roo.Element",
305 "name" : "setContent",
307 "desc" : "Updates this panel's element",
308 "sig" : "(content, loadScripts)",
312 "isConstructor" : false,
324 "desc" : "The new content",
328 "name" : "loadScripts",
330 "desc" : "(optional) true to look for and process scripts",
339 "desc" : "Returns this panel's id",
340 "sig" : "()\n{\n\n}",
344 "isConstructor" : false,
364 "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>",
369 "isConstructor" : false,
381 "desc" : "Xtype definition of item to add.",
390 "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.",
391 "sig" : "()\n{\n\n}",
395 "isConstructor" : false,
409 "desc" : "Returns this panel's title",
410 "sig" : "()\n{\n\n}",
414 "isConstructor" : false,
434 "desc" : "Set this panel's title",
439 "isConstructor" : false,
458 "name" : "getToolbar",
460 "desc" : "Returns the toolbar for this Panel if one was configured.",
461 "sig" : "()\n{\n\n}",
465 "isConstructor" : false,
477 "type" : "Roo.Toolbar",
485 "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.",
486 "sig" : "(url, params, loadOnce)",
490 "isConstructor" : false,
501 "type" : "String/Function",
502 "desc" : "The URL to load the content from or a function to call to get the URL",
507 "type" : "String/Object",
508 "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)",
514 "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)",
521 "type" : "Roo.UpdateManager",
522 "desc" : "The UpdateManager"
527 "name" : "purgeListeners",
529 "desc" : "Removes all listeners for this object",
530 "sig" : "()\n{\n\n}",
532 "memberOf" : "Roo.util.Observable",
534 "isConstructor" : false,
548 "desc" : "Appends an event handler to this element (shorthand for addListener)",
549 "sig" : "(eventName, handler, scope, options)",
551 "memberOf" : "Roo.util.Observable",
553 "isConstructor" : false,
563 "name" : "eventName",
565 "desc" : "The type of event to listen for",
571 "desc" : "The method the event invokes",
577 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
583 "desc" : "(optional)",
592 "desc" : "Removes a listener (shorthand for removeListener)",
593 "sig" : "(eventName, handler, scope)",
595 "memberOf" : "Roo.util.Observable",
597 "isConstructor" : false,
607 "name" : "eventName",
609 "desc" : "The type of event to listen for",
615 "desc" : "The handler to remove",
621 "desc" : "(optional) The scope (this object) for the handler",
628 "name" : "addEvents",
630 "desc" : "Used to define events on this Observable",
633 "memberOf" : "Roo.util.Observable",
635 "isConstructor" : false,
647 "desc" : "The object with the events defined",
654 "name" : "releaseCapture",
656 "desc" : "Removes <b>all</b> added captures from the Observable.",
659 "memberOf" : "Roo.util.Observable",
661 "isConstructor" : false,
672 "type" : "Observable",
673 "desc" : "The Observable to release",
680 "name" : "removeListener",
682 "desc" : "Removes a listener",
683 "sig" : "(eventName, handler, scope)",
685 "memberOf" : "Roo.util.Observable",
687 "isConstructor" : false,
697 "name" : "eventName",
699 "desc" : "The type of event to listen for",
705 "desc" : "The handler to remove",
711 "desc" : "(optional) The scope (this object) for the handler",
718 "name" : "fireEvent",
720 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
721 "sig" : "(eventName, args)",
723 "memberOf" : "Roo.util.Observable",
725 "isConstructor" : false,
735 "name" : "eventName",
742 "type" : "Object...",
743 "desc" : "Variable number of parameters are passed to handlers",
751 "desc" : "returns false if any of the handlers return false otherwise it returns true"
756 "name" : "hasListener",
758 "desc" : "Checks to see if this object has any listeners for a specified event",
759 "sig" : "(eventName)",
761 "memberOf" : "Roo.util.Observable",
763 "isConstructor" : false,
773 "name" : "eventName",
775 "desc" : "The name of the event to check for",
783 "desc" : "True if the event is being listened for, else false"
790 "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.",
791 "sig" : "(o, fn, scope)",
793 "memberOf" : "Roo.util.Observable",
795 "isConstructor" : false,
806 "type" : "Observable",
807 "desc" : "The Observable to capture",
813 "desc" : "The function to call",
819 "desc" : "(optional) The scope (this object) for the fn",
826 "name" : "addListener",
828 "desc" : "Appends an event handler to this component",
829 "sig" : "(eventName, handler, scope, options)",
831 "memberOf" : "Roo.util.Observable",
833 "isConstructor" : false,
843 "name" : "eventName",
845 "desc" : "The type of event to listen for",
851 "desc" : "The method the event invokes",
857 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
863 "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>",
872 "name" : "deactivate",
874 "desc" : "Fires when this panel is activated.",
875 "sig" : "function (_self)\n{\n\n}",
884 "type" : "Roo.ContentPanel",
894 "desc" : "Fires when this panel is resized if fitToFrame is true.",
895 "sig" : "function (_self, width, height)\n{\n\n}",
904 "type" : "Roo.ContentPanel",
911 "desc" : "The width after any component adjustments",
917 "desc" : "The height after any component adjustments",
926 "desc" : "Fires when this tab is created",
927 "sig" : "function (_self)\n{\n\n}",
936 "type" : "Roo.ContentPanel",
946 "desc" : "Fires when this panel is activated.",
947 "sig" : "function (_self)\n{\n\n}",
956 "type" : "Roo.ContentPanel",