2 "name" : "Roo.TabPanelItem",
6 "desc" : "Represents an individual item (tab plus body) in a TabPanel.",
14 "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>",
15 "memberOf" : "Roo.util.Observable",
23 "desc" : "Set a URL to be used to load the content for this TabPanelItem.",
25 "isConstructor" : false,
27 "memberOf" : "Roo.TabPanelItem",
35 "type" : "String/Function",
36 "desc" : "The URL to load the content from, or a function to call to get the URL",
41 "type" : "String/Object",
42 "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)",
48 "desc" : "(optional) Whether to only load the content once. If this is false it makes the Ajax call every time this TabPanelItem is activated. (Defaults to false)",
55 "type" : "Roo.UpdateManager",
56 "desc" : "The UpdateManager"
62 "desc" : "Returns the text for this tab",
64 "isConstructor" : false,
66 "memberOf" : "Roo.TabPanelItem",
83 "desc" : "Returns true if this tab is \"hidden\"",
85 "isConstructor" : false,
87 "memberOf" : "Roo.TabPanelItem",
104 "desc" : "Sets the text for the tab (Note: this also sets the tooltip text)",
106 "isConstructor" : false,
108 "memberOf" : "Roo.TabPanelItem",
117 "desc" : "The tab's text and tooltip",
126 "desc" : "Activates this TabPanelItem -- this <b>does</b> deactivate the currently active TabPanelItem.",
128 "isConstructor" : false,
130 "memberOf" : "Roo.TabPanelItem",
142 "desc" : "Returns true if this tab is the active tab.",
144 "isConstructor" : false,
146 "memberOf" : "Roo.TabPanelItem",
162 "name" : "setContent",
163 "desc" : "Sets the content for this TabPanelItem.",
165 "isConstructor" : false,
167 "memberOf" : "Roo.TabPanelItem",
176 "desc" : "The content",
180 "name" : "loadScripts",
182 "desc" : "true to look for and load scripts",
191 "desc" : "Forces a content refresh from the URL specified in the {@link #setUrl} method.\n Will fail silently if the setUrl method has not been called.\n This does not activate the panel, just updates its content.",
193 "isConstructor" : false,
195 "memberOf" : "Roo.TabPanelItem",
206 "name" : "setHidden",
207 "desc" : "Show or hide the tab",
209 "isConstructor" : false,
211 "memberOf" : "Roo.TabPanelItem",
220 "desc" : "True to hide or false to show.",
228 "name" : "setTooltip",
229 "desc" : "Set the tooltip for the tab.",
231 "isConstructor" : false,
233 "memberOf" : "Roo.TabPanelItem",
242 "desc" : "The tab's tooltip",
251 "desc" : "Enables this TabPanelItem if it was previously disabled.",
253 "isConstructor" : false,
255 "memberOf" : "Roo.TabPanelItem",
266 "name" : "getUpdateManager",
267 "desc" : "Gets the {@link Roo.UpdateManager} for the body of this TabPanelItem. Enables you to perform Ajax updates.",
269 "isConstructor" : false,
271 "memberOf" : "Roo.TabPanelItem",
281 "type" : "Roo.UpdateManager",
282 "desc" : "The UpdateManager"
288 "desc" : "Disables this TabPanelItem -- this does nothing if this is the active TabPanelItem.",
290 "isConstructor" : false,
292 "memberOf" : "Roo.TabPanelItem",
304 "desc" : "Hides this TabPanelItem -- if you don't activate another TabPanelItem this could look odd.",
306 "isConstructor" : false,
308 "memberOf" : "Roo.TabPanelItem",
320 "desc" : "Shows this TabPanelItem -- this <b>does not</b> deactivate the currently active TabPanelItem.",
322 "isConstructor" : false,
324 "memberOf" : "Roo.TabPanelItem",
335 "name" : "purgeListeners",
336 "desc" : "Removes all listeners for this object",
338 "isConstructor" : false,
340 "memberOf" : "Roo.util.Observable",
352 "desc" : "Appends an event handler to this element (shorthand for addListener)",
354 "isConstructor" : false,
356 "memberOf" : "Roo.util.Observable",
363 "name" : "eventName",
365 "desc" : "The type of event to listen for",
371 "desc" : "The method the event invokes",
377 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
383 "desc" : "(optional)",
392 "desc" : "Removes a listener (shorthand for removeListener)",
394 "isConstructor" : false,
396 "memberOf" : "Roo.util.Observable",
403 "name" : "eventName",
405 "desc" : "The type of event to listen for",
411 "desc" : "The handler to remove",
417 "desc" : "(optional) The scope (this object) for the handler",
425 "name" : "addEvents",
426 "desc" : "Used to define events on this Observable",
428 "isConstructor" : false,
430 "memberOf" : "Roo.util.Observable",
439 "desc" : "The object with the events defined",
447 "name" : "releaseCapture",
448 "desc" : "Removes <b>all</b> added captures from the Observable.",
450 "isConstructor" : false,
452 "memberOf" : "Roo.util.Observable",
460 "type" : "Observable",
461 "desc" : "The Observable to release",
469 "name" : "removeListener",
470 "desc" : "Removes a listener",
472 "isConstructor" : false,
474 "memberOf" : "Roo.util.Observable",
481 "name" : "eventName",
483 "desc" : "The type of event to listen for",
489 "desc" : "The handler to remove",
495 "desc" : "(optional) The scope (this object) for the handler",
503 "name" : "fireEvent",
504 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
506 "isConstructor" : false,
508 "memberOf" : "Roo.util.Observable",
515 "name" : "eventName",
522 "type" : "Object...",
523 "desc" : "Variable number of parameters are passed to handlers",
531 "desc" : "returns false if any of the handlers return false otherwise it returns true"
536 "name" : "hasListener",
537 "desc" : "Checks to see if this object has any listeners for a specified event",
539 "isConstructor" : false,
541 "memberOf" : "Roo.util.Observable",
548 "name" : "eventName",
550 "desc" : "The name of the event to check for",
558 "desc" : "True if the event is being listened for, else false"
564 "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.",
566 "isConstructor" : false,
568 "memberOf" : "Roo.util.Observable",
576 "type" : "Observable",
577 "desc" : "The Observable to capture",
583 "desc" : "The function to call",
589 "desc" : "(optional) The scope (this object) for the fn",
597 "name" : "addListener",
598 "desc" : "Appends an event handler to this component",
600 "isConstructor" : false,
602 "memberOf" : "Roo.util.Observable",
609 "name" : "eventName",
611 "desc" : "The type of event to listen for",
617 "desc" : "The method the event invokes",
623 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
629 "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>",
639 "name" : "beforeclose",
640 "desc" : "Fires before this tab is closed. To cancel the close, set cancel to true on e (e.cancel = true).",
649 "type" : "Roo.TabPanelItem",
656 "desc" : "Set cancel to true on this object to cancel the close.",
665 "desc" : "Fires when this tab is closed.",
674 "type" : "Roo.TabPanelItem",
684 "desc" : "Fires when this tab becomes the active tab.",
693 "type" : "Roo.TabPanel",
694 "desc" : "The parent TabPanel",
699 "type" : "Roo.TabPanelItem",
708 "name" : "deactivate",
709 "desc" : "Fires when this tab is no longer the active tab.",
718 "type" : "Roo.TabPanel",
719 "desc" : "The parent TabPanel",
724 "type" : "Roo.TabPanelItem",