2 "name" : "Roo.TreePanel",
7 "desc" : "Treepanel component",
11 "memberOf" : "TreePanel",
19 "type" : "String/Object",
20 "desc" : "A string to set only the panel's title, or a config object",
31 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
32 "memberOf" : "Roo.ContentPanel"
37 "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>",
38 "memberOf" : "Roo.util.Observable"
41 "name" : "autoScroll",
43 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
44 "memberOf" : "Roo.ContentPanel"
47 "name" : "fitToFrame",
49 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
50 "memberOf" : "Roo.ContentPanel"
53 "name" : "background",
55 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
56 "memberOf" : "Roo.ContentPanel"
60 "type" : "Roo.Toolbar",
61 "desc" : "A toolbar for this panel",
62 "memberOf" : "Roo.ContentPanel"
67 "desc" : "[required] (center|north|south|east|west) which region to put this panel on (when used with xtype constructors)",
68 "memberOf" : "Roo.ContentPanel"
73 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
74 "memberOf" : "Roo.ContentPanel"
78 "type" : "Roo.menu.Menu",
79 "desc" : "popup menu",
80 "memberOf" : "Roo.ContentPanel"
85 "desc" : "The title for this panel",
86 "memberOf" : "Roo.ContentPanel"
91 "desc" : "Extra style to add to the content panel",
92 "memberOf" : "Roo.ContentPanel"
95 "name" : "autoCreate",
96 "type" : "Boolean|Object",
97 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
98 "memberOf" : "Roo.ContentPanel"
101 "name" : "fitContainer",
103 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
104 "memberOf" : "Roo.ContentPanel"
109 "desc" : "True if the panel can be closed/removed",
110 "memberOf" : "Roo.ContentPanel"
114 "type" : "String|Object",
115 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
116 "memberOf" : "Roo.ContentPanel"
119 "name" : "adjustments",
121 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
122 "memberOf" : "Roo.ContentPanel"
127 "desc" : "Calls {@link #setUrl} with this value",
128 "memberOf" : "Roo.ContentPanel"
132 "type" : "String|HTMLElement|Element",
133 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
134 "memberOf" : "Roo.ContentPanel"
141 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
142 "sig" : "(url, params, callback, discardUrl)",
144 "memberOf" : "Roo.ContentPanel",
146 "isConstructor" : false,
157 "type" : "Object/String/Function",
158 "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.",
163 "type" : "String/Object",
164 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
170 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
174 "name" : "discardUrl",
176 "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.",
183 "type" : "Roo.ContentPanel",
189 "name" : "getUpdateManager",
191 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
192 "sig" : "()\n{\n\n}",
194 "memberOf" : "Roo.ContentPanel",
196 "isConstructor" : false,
208 "type" : "Roo.UpdateManager",
209 "desc" : "The UpdateManager"
214 "name" : "isClosable",
216 "desc" : "Returns true is this panel was configured to be closable",
217 "sig" : "()\n{\n\n}",
219 "memberOf" : "Roo.ContentPanel",
221 "isConstructor" : false,
241 "desc" : "Destroys this panel",
242 "sig" : "()\n{\n\n}",
244 "memberOf" : "Roo.ContentPanel",
246 "isConstructor" : false,
260 "desc" : "Returns this panel's element - used by regiosn to add.",
261 "sig" : "()\n{\n\n}",
263 "memberOf" : "Roo.ContentPanel",
265 "isConstructor" : false,
277 "type" : "Roo.Element",
283 "name" : "setContent",
285 "desc" : "Updates this panel's element",
286 "sig" : "(content, loadScripts)",
288 "memberOf" : "Roo.ContentPanel",
290 "isConstructor" : false,
302 "desc" : "The new content",
306 "name" : "loadScripts",
308 "desc" : "(optional) true to look for and process scripts",
317 "desc" : "Returns this panel's id",
318 "sig" : "()\n{\n\n}",
320 "memberOf" : "Roo.ContentPanel",
322 "isConstructor" : false,
342 "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>",
345 "memberOf" : "Roo.ContentPanel",
347 "isConstructor" : false,
359 "desc" : "Xtype definition of item to add.",
368 "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.",
369 "sig" : "()\n{\n\n}",
371 "memberOf" : "Roo.ContentPanel",
373 "isConstructor" : false,
387 "desc" : "Returns this panel's title",
388 "sig" : "()\n{\n\n}",
390 "memberOf" : "Roo.ContentPanel",
392 "isConstructor" : false,
412 "desc" : "Set this panel's title",
415 "memberOf" : "Roo.ContentPanel",
417 "isConstructor" : false,
436 "name" : "getToolbar",
438 "desc" : "Returns the toolbar for this Panel if one was configured.",
439 "sig" : "()\n{\n\n}",
441 "memberOf" : "Roo.ContentPanel",
443 "isConstructor" : false,
455 "type" : "Roo.Toolbar",
463 "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.",
464 "sig" : "(url, params, loadOnce)",
466 "memberOf" : "Roo.ContentPanel",
468 "isConstructor" : false,
479 "type" : "String/Function",
480 "desc" : "The URL to load the content from or a function to call to get the URL",
485 "type" : "String/Object",
486 "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)",
492 "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)",
499 "type" : "Roo.UpdateManager",
500 "desc" : "The UpdateManager"
505 "name" : "purgeListeners",
507 "desc" : "Removes all listeners for this object",
508 "sig" : "()\n{\n\n}",
510 "memberOf" : "Roo.util.Observable",
512 "isConstructor" : false,
526 "desc" : "Appends an event handler to this element (shorthand for addListener)",
527 "sig" : "(eventName, handler, scope, options)",
529 "memberOf" : "Roo.util.Observable",
531 "isConstructor" : false,
541 "name" : "eventName",
543 "desc" : "The type of event to listen for",
549 "desc" : "The method the event invokes",
555 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
561 "desc" : "(optional)",
570 "desc" : "Removes a listener (shorthand for removeListener)",
571 "sig" : "(eventName, handler, scope)",
573 "memberOf" : "Roo.util.Observable",
575 "isConstructor" : false,
585 "name" : "eventName",
587 "desc" : "The type of event to listen for",
593 "desc" : "The handler to remove",
599 "desc" : "(optional) The scope (this object) for the handler",
606 "name" : "addEvents",
608 "desc" : "Used to define events on this Observable",
611 "memberOf" : "Roo.util.Observable",
613 "isConstructor" : false,
625 "desc" : "The object with the events defined",
632 "name" : "releaseCapture",
634 "desc" : "Removes <b>all</b> added captures from the Observable.",
637 "memberOf" : "Roo.util.Observable",
639 "isConstructor" : false,
650 "type" : "Observable",
651 "desc" : "The Observable to release",
658 "name" : "removeListener",
660 "desc" : "Removes a listener",
661 "sig" : "(eventName, handler, scope)",
663 "memberOf" : "Roo.util.Observable",
665 "isConstructor" : false,
675 "name" : "eventName",
677 "desc" : "The type of event to listen for",
683 "desc" : "The handler to remove",
689 "desc" : "(optional) The scope (this object) for the handler",
696 "name" : "fireEvent",
698 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
699 "sig" : "(eventName, args)",
701 "memberOf" : "Roo.util.Observable",
703 "isConstructor" : false,
713 "name" : "eventName",
720 "type" : "Object...",
721 "desc" : "Variable number of parameters are passed to handlers",
729 "desc" : "returns false if any of the handlers return false otherwise it returns true"
734 "name" : "hasListener",
736 "desc" : "Checks to see if this object has any listeners for a specified event",
737 "sig" : "(eventName)",
739 "memberOf" : "Roo.util.Observable",
741 "isConstructor" : false,
751 "name" : "eventName",
753 "desc" : "The name of the event to check for",
761 "desc" : "True if the event is being listened for, else false"
768 "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.",
769 "sig" : "(o, fn, scope)",
771 "memberOf" : "Roo.util.Observable",
773 "isConstructor" : false,
784 "type" : "Observable",
785 "desc" : "The Observable to capture",
791 "desc" : "The function to call",
797 "desc" : "(optional) The scope (this object) for the fn",
804 "name" : "addListener",
806 "desc" : "Appends an event handler to this component",
807 "sig" : "(eventName, handler, scope, options)",
809 "memberOf" : "Roo.util.Observable",
811 "isConstructor" : false,
821 "name" : "eventName",
823 "desc" : "The type of event to listen for",
829 "desc" : "The method the event invokes",
835 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
841 "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>",
850 "name" : "deactivate",
852 "desc" : "Fires when this panel is activated.",
853 "sig" : "function (_self)\n{\n\n}",
854 "memberOf" : "Roo.ContentPanel",
862 "type" : "Roo.ContentPanel",
872 "desc" : "Fires when this panel is resized if fitToFrame is true.",
873 "sig" : "function (_self, width, height)\n{\n\n}",
874 "memberOf" : "Roo.ContentPanel",
882 "type" : "Roo.ContentPanel",
889 "desc" : "The width after any component adjustments",
895 "desc" : "The height after any component adjustments",
904 "desc" : "Fires when this tab is created",
905 "sig" : "function (_self)\n{\n\n}",
906 "memberOf" : "Roo.ContentPanel",
914 "type" : "Roo.ContentPanel",
924 "desc" : "Fires when this panel is activated.",
925 "sig" : "function (_self)\n{\n\n}",
926 "memberOf" : "Roo.ContentPanel",
934 "type" : "Roo.ContentPanel",