2 "name" : "Roo.ContentPanel",
6 "desc" : "A basic ContentPanel element.",
10 "memberOf" : "ContentPanel",
18 "type" : "String/HTMLElement/Roo.Element",
19 "desc" : "The container element for this panel",
24 "type" : "String/Object",
25 "desc" : "A string to set only the title or a config object",
31 "desc" : "(optional) Set the HTML content for this panel",
37 "desc" : "(optional) Used by xtype constructors to add to regions. (values center,east,west,south,north)",
47 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
48 "memberOf" : "Roo.ContentPanel",
55 "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>",
56 "memberOf" : "Roo.util.Observable",
61 "name" : "autoScroll",
63 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
64 "memberOf" : "Roo.ContentPanel",
69 "name" : "fitToFrame",
71 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
72 "memberOf" : "Roo.ContentPanel",
77 "name" : "background",
79 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
80 "memberOf" : "Roo.ContentPanel",
87 "desc" : "A toolbar for this panel",
88 "memberOf" : "Roo.ContentPanel",
95 "desc" : "which region to put this panel on (when used with xtype constructors)",
96 "memberOf" : "Roo.ContentPanel",
108 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
109 "memberOf" : "Roo.ContentPanel",
116 "desc" : "The title for this panel",
117 "memberOf" : "Roo.ContentPanel",
122 "name" : "autoCreate",
123 "type" : "Boolean/Object",
124 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
125 "memberOf" : "Roo.ContentPanel",
130 "name" : "fitContainer",
132 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
133 "memberOf" : "Roo.ContentPanel",
140 "desc" : "True if the panel can be closed/removed",
141 "memberOf" : "Roo.ContentPanel",
147 "type" : "String/Object",
148 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
149 "memberOf" : "Roo.ContentPanel",
154 "name" : "adjustments",
156 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
157 "memberOf" : "Roo.ContentPanel",
164 "desc" : "Calls {@link #setUrl} with this value",
165 "memberOf" : "Roo.ContentPanel",
171 "type" : "String/HTMLElement/Element",
172 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
173 "memberOf" : "Roo.ContentPanel",
181 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
183 "isConstructor" : false,
185 "memberOf" : "Roo.ContentPanel",
193 "type" : "Object/String/Function",
194 "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.",
199 "type" : "String/Object",
200 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
206 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
210 "name" : "discardUrl",
212 "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.",
219 "type" : "Roo.ContentPanel",
225 "name" : "getUpdateManager",
226 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
228 "isConstructor" : false,
230 "memberOf" : "Roo.ContentPanel",
240 "type" : "Roo.UpdateManager",
241 "desc" : "The UpdateManager"
246 "name" : "isClosable",
247 "desc" : "Returns true is this panel was configured to be closable",
249 "isConstructor" : false,
251 "memberOf" : "Roo.ContentPanel",
268 "desc" : "Destroys this panel",
270 "isConstructor" : false,
272 "memberOf" : "Roo.ContentPanel",
284 "desc" : "Returns this panel's element - used by regiosn to add.",
286 "isConstructor" : false,
288 "memberOf" : "Roo.ContentPanel",
298 "type" : "Roo.Element",
304 "name" : "setContent",
305 "desc" : "Updates this panel's element",
307 "isConstructor" : false,
309 "memberOf" : "Roo.ContentPanel",
318 "desc" : "The new content",
322 "name" : "loadScripts",
324 "desc" : "(optional) true to look for and process scripts",
333 "desc" : "Returns this panel's id",
335 "isConstructor" : false,
337 "memberOf" : "Roo.ContentPanel",
354 "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>",
356 "isConstructor" : false,
358 "memberOf" : "Roo.ContentPanel",
367 "desc" : "Xtype definition of item to add.",
376 "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.",
378 "isConstructor" : false,
380 "memberOf" : "Roo.ContentPanel",
392 "desc" : "Returns this panel's title",
394 "isConstructor" : false,
396 "memberOf" : "Roo.ContentPanel",
413 "desc" : "Set this panel's title",
415 "isConstructor" : false,
417 "memberOf" : "Roo.ContentPanel",
434 "name" : "getToolbar",
435 "desc" : "Returns the toolbar for this Panel if one was configured.",
437 "isConstructor" : false,
439 "memberOf" : "Roo.ContentPanel",
449 "type" : "Roo.Toolbar",
456 "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.",
458 "isConstructor" : false,
460 "memberOf" : "Roo.ContentPanel",
468 "type" : "String/Function",
469 "desc" : "The URL to load the content from or a function to call to get the URL",
474 "type" : "String/Object",
475 "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)",
481 "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)",
488 "type" : "Roo.UpdateManager",
489 "desc" : "The UpdateManager"
494 "name" : "purgeListeners",
495 "desc" : "Removes all listeners for this object",
497 "isConstructor" : false,
499 "memberOf" : "Roo.util.Observable",
511 "desc" : "Appends an event handler to this element (shorthand for addListener)",
513 "isConstructor" : false,
515 "memberOf" : "Roo.util.Observable",
522 "name" : "eventName",
524 "desc" : "The type of event to listen for",
530 "desc" : "The method the event invokes",
536 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
542 "desc" : "(optional)",
551 "desc" : "Removes a listener (shorthand for removeListener)",
553 "isConstructor" : false,
555 "memberOf" : "Roo.util.Observable",
562 "name" : "eventName",
564 "desc" : "The type of event to listen for",
570 "desc" : "The handler to remove",
576 "desc" : "(optional) The scope (this object) for the handler",
584 "name" : "addEvents",
585 "desc" : "Used to define events on this Observable",
587 "isConstructor" : false,
589 "memberOf" : "Roo.util.Observable",
598 "desc" : "The object with the events defined",
606 "name" : "releaseCapture",
607 "desc" : "Removes <b>all</b> added captures from the Observable.",
609 "isConstructor" : false,
611 "memberOf" : "Roo.util.Observable",
619 "type" : "Observable",
620 "desc" : "The Observable to release",
628 "name" : "removeListener",
629 "desc" : "Removes a listener",
631 "isConstructor" : false,
633 "memberOf" : "Roo.util.Observable",
640 "name" : "eventName",
642 "desc" : "The type of event to listen for",
648 "desc" : "The handler to remove",
654 "desc" : "(optional) The scope (this object) for the handler",
662 "name" : "fireEvent",
663 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
665 "isConstructor" : false,
667 "memberOf" : "Roo.util.Observable",
674 "name" : "eventName",
681 "type" : "Object...",
682 "desc" : "Variable number of parameters are passed to handlers",
690 "desc" : "returns false if any of the handlers return false otherwise it returns true"
695 "name" : "hasListener",
696 "desc" : "Checks to see if this object has any listeners for a specified event",
698 "isConstructor" : false,
700 "memberOf" : "Roo.util.Observable",
707 "name" : "eventName",
709 "desc" : "The name of the event to check for",
717 "desc" : "True if the event is being listened for, else false"
723 "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.",
725 "isConstructor" : false,
727 "memberOf" : "Roo.util.Observable",
735 "type" : "Observable",
736 "desc" : "The Observable to capture",
742 "desc" : "The function to call",
748 "desc" : "(optional) The scope (this object) for the fn",
756 "name" : "addListener",
757 "desc" : "Appends an event handler to this component",
759 "isConstructor" : false,
761 "memberOf" : "Roo.util.Observable",
768 "name" : "eventName",
770 "desc" : "The type of event to listen for",
776 "desc" : "The method the event invokes",
782 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
788 "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>",
798 "name" : "deactivate",
799 "desc" : "Fires when this panel is activated.",
808 "type" : "Roo.ContentPanel",
818 "desc" : "Fires when this panel is resized if fitToFrame is true.",
827 "type" : "Roo.ContentPanel",
834 "desc" : "The width after any component adjustments",
840 "desc" : "The height after any component adjustments",
849 "desc" : "Fires when this tab is created",
858 "type" : "Roo.ContentPanel",
868 "desc" : "Fires when this panel is activated.",
877 "type" : "Roo.ContentPanel",