2 "name" : "Roo.TreePanel",
14 "desc" : "Treepanel component",
15 "isSingleton" : false,
19 "isBuilderTop" : false,
20 "memberOf" : "TreePanel",
28 "type" : "String/Object",
29 "desc" : "A string to set only the panel's title, or a config object",
40 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
41 "memberOf" : "Roo.ContentPanel"
46 "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>",
47 "memberOf" : "Roo.util.Observable"
50 "name" : "autoScroll",
52 "desc" : "True to scroll overflow in this panel (use with {@link #fitToFrame})",
53 "memberOf" : "Roo.ContentPanel"
56 "name" : "fitToFrame",
58 "desc" : "True for this panel to adjust its size to fit when the region resizes (defaults to false)",
59 "memberOf" : "Roo.ContentPanel"
62 "name" : "background",
64 "desc" : "True if the panel should not be activated when it is added (defaults to false)",
65 "memberOf" : "Roo.ContentPanel"
69 "type" : "Roo.Toolbar",
70 "desc" : "A toolbar for this panel",
71 "memberOf" : "Roo.ContentPanel"
76 "desc" : "t) [required] which region to put this panel on (when used with xtype constructors)",
77 "memberOf" : "Roo.ContentPanel"
82 "desc" : "Raw content to fill content panel with (uses setContent on construction.)",
83 "memberOf" : "Roo.ContentPanel"
87 "type" : "Roo.menu.Menu",
88 "desc" : "popup menu",
89 "memberOf" : "Roo.ContentPanel"
94 "desc" : "The title for this panel",
95 "memberOf" : "Roo.ContentPanel"
100 "desc" : "Extra style to add to the content panel",
101 "memberOf" : "Roo.ContentPanel"
104 "name" : "autoCreate",
105 "type" : "Boolean|Object",
106 "desc" : "True to auto generate the DOM element for this panel, or a {@link Roo.DomHelper} config of the element to create",
107 "memberOf" : "Roo.ContentPanel"
110 "name" : "fitContainer",
112 "desc" : "When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container (defaults to false)",
113 "memberOf" : "Roo.ContentPanel"
118 "desc" : "True if the panel can be closed/removed",
119 "memberOf" : "Roo.ContentPanel"
123 "type" : "String|Object",
124 "desc" : "When used with {@link #url}, calls {@link #setUrl} with this value",
125 "memberOf" : "Roo.ContentPanel"
128 "name" : "adjustments",
130 "desc" : "Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])",
131 "memberOf" : "Roo.ContentPanel"
136 "desc" : "Calls {@link #setUrl} with this value",
137 "memberOf" : "Roo.ContentPanel"
141 "type" : "String|HTMLElement|Element",
142 "desc" : "An element to resize if {@link #fitToFrame} is true (instead of this panel's element)",
143 "memberOf" : "Roo.ContentPanel"
150 "desc" : "Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.",
151 "sig" : "(url, params, callback, discardUrl)",
153 "memberOf" : "Roo.ContentPanel",
155 "isConstructor" : false,
166 "type" : "Object/String/Function",
167 "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.",
172 "type" : "String/Object",
173 "desc" : "(optional) The parameters to pass as either a URL encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
179 "desc" : "(optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)",
183 "name" : "discardUrl",
185 "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.",
192 "type" : "Roo.ContentPanel",
198 "name" : "getUpdateManager",
200 "desc" : "Get the {@link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.",
201 "sig" : "()\n{\n\n}",
203 "memberOf" : "Roo.ContentPanel",
205 "isConstructor" : false,
217 "type" : "Roo.UpdateManager",
218 "desc" : "The UpdateManager"
223 "name" : "isClosable",
225 "desc" : "Returns true is this panel was configured to be closable",
226 "sig" : "()\n{\n\n}",
228 "memberOf" : "Roo.ContentPanel",
230 "isConstructor" : false,
250 "desc" : "Destroys this panel",
251 "sig" : "()\n{\n\n}",
253 "memberOf" : "Roo.ContentPanel",
255 "isConstructor" : false,
269 "desc" : "Returns this panel's element - used by regiosn to add.",
270 "sig" : "()\n{\n\n}",
272 "memberOf" : "Roo.ContentPanel",
274 "isConstructor" : false,
286 "type" : "Roo.Element",
292 "name" : "setContent",
294 "desc" : "Updates this panel's element",
295 "sig" : "(content, loadScripts)",
297 "memberOf" : "Roo.ContentPanel",
299 "isConstructor" : false,
311 "desc" : "The new content",
315 "name" : "loadScripts",
317 "desc" : "(optional) true to look for and process scripts",
326 "desc" : "Returns this panel's id",
327 "sig" : "()\n{\n\n}",
329 "memberOf" : "Roo.ContentPanel",
331 "isConstructor" : false,
351 "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>",
354 "memberOf" : "Roo.ContentPanel",
356 "isConstructor" : false,
368 "desc" : "Xtype definition of item to add.",
377 "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 "sig" : "()\n{\n\n}",
380 "memberOf" : "Roo.ContentPanel",
382 "isConstructor" : false,
396 "desc" : "Returns this panel's title",
397 "sig" : "()\n{\n\n}",
399 "memberOf" : "Roo.ContentPanel",
401 "isConstructor" : false,
421 "desc" : "Set this panel's title",
424 "memberOf" : "Roo.ContentPanel",
426 "isConstructor" : false,
445 "name" : "getToolbar",
447 "desc" : "Returns the toolbar for this Panel if one was configured.",
448 "sig" : "()\n{\n\n}",
450 "memberOf" : "Roo.ContentPanel",
452 "isConstructor" : false,
464 "type" : "Roo.Toolbar",
472 "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.",
473 "sig" : "(url, params, loadOnce)",
475 "memberOf" : "Roo.ContentPanel",
477 "isConstructor" : false,
488 "type" : "String/Function",
489 "desc" : "The URL to load the content from or a function to call to get the URL",
494 "type" : "String/Object",
495 "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)",
501 "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)",
508 "type" : "Roo.UpdateManager",
509 "desc" : "The UpdateManager"
514 "name" : "purgeListeners",
516 "desc" : "Removes all listeners for this object",
517 "sig" : "()\n{\n\n}",
519 "memberOf" : "Roo.util.Observable",
521 "isConstructor" : false,
535 "desc" : "Appends an event handler to this element (shorthand for addListener)",
536 "sig" : "(eventName, handler, scope, options)",
538 "memberOf" : "Roo.util.Observable",
540 "isConstructor" : false,
550 "name" : "eventName",
552 "desc" : "The type of event to listen for",
558 "desc" : "The method the event invokes",
564 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
570 "desc" : "(optional)",
579 "desc" : "Removes a listener (shorthand for removeListener)",
580 "sig" : "(eventName, handler, scope)",
582 "memberOf" : "Roo.util.Observable",
584 "isConstructor" : false,
594 "name" : "eventName",
596 "desc" : "The type of event to listen for",
602 "desc" : "The handler to remove",
608 "desc" : "(optional) The scope (this object) for the handler",
615 "name" : "addEvents",
617 "desc" : "Used to define events on this Observable",
620 "memberOf" : "Roo.util.Observable",
622 "isConstructor" : false,
634 "desc" : "The object with the events defined",
641 "name" : "releaseCapture",
643 "desc" : "Removes <b>all</b> added captures from the Observable.",
646 "memberOf" : "Roo.util.Observable",
648 "isConstructor" : false,
659 "type" : "Observable",
660 "desc" : "The Observable to release",
667 "name" : "removeListener",
669 "desc" : "Removes a listener",
670 "sig" : "(eventName, handler, scope)",
672 "memberOf" : "Roo.util.Observable",
674 "isConstructor" : false,
684 "name" : "eventName",
686 "desc" : "The type of event to listen for",
692 "desc" : "The handler to remove",
698 "desc" : "(optional) The scope (this object) for the handler",
705 "name" : "fireEvent",
707 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
708 "sig" : "(eventName, args)",
710 "memberOf" : "Roo.util.Observable",
712 "isConstructor" : false,
722 "name" : "eventName",
729 "type" : "Object...",
730 "desc" : "Variable number of parameters are passed to handlers",
738 "desc" : "returns false if any of the handlers return false otherwise it returns true"
743 "name" : "hasListener",
745 "desc" : "Checks to see if this object has any listeners for a specified event",
746 "sig" : "(eventName)",
748 "memberOf" : "Roo.util.Observable",
750 "isConstructor" : false,
760 "name" : "eventName",
762 "desc" : "The name of the event to check for",
770 "desc" : "True if the event is being listened for, else false"
777 "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.",
778 "sig" : "(o, fn, scope)",
780 "memberOf" : "Roo.util.Observable",
782 "isConstructor" : false,
793 "type" : "Observable",
794 "desc" : "The Observable to capture",
800 "desc" : "The function to call",
806 "desc" : "(optional) The scope (this object) for the fn",
813 "name" : "addListener",
815 "desc" : "Appends an event handler to this component",
816 "sig" : "(eventName, handler, scope, options)",
818 "memberOf" : "Roo.util.Observable",
820 "isConstructor" : false,
830 "name" : "eventName",
832 "desc" : "The type of event to listen for",
838 "desc" : "The method the event invokes",
844 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
850 "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>",
859 "name" : "deactivate",
861 "desc" : "Fires when this panel is activated.",
862 "sig" : "function (_self)\n{\n\n}",
863 "memberOf" : "Roo.ContentPanel",
871 "type" : "Roo.ContentPanel",
881 "desc" : "Fires when this panel is resized if fitToFrame is true.",
882 "sig" : "function (_self, width, height)\n{\n\n}",
883 "memberOf" : "Roo.ContentPanel",
891 "type" : "Roo.ContentPanel",
898 "desc" : "The width after any component adjustments",
904 "desc" : "The height after any component adjustments",
913 "desc" : "Fires when this tab is created",
914 "sig" : "function (_self)\n{\n\n}",
915 "memberOf" : "Roo.ContentPanel",
923 "type" : "Roo.ContentPanel",
933 "desc" : "Fires when this panel is activated.",
934 "sig" : "function (_self)\n{\n\n}",
935 "memberOf" : "Roo.ContentPanel",
943 "type" : "Roo.ContentPanel",