2 "name" : "Roo.TabPanelItem",
9 "desc" : "Represents an individual item (tab plus body) in a TabPanel.",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "TabPanelItem",
23 "type" : "Roo.TabPanel",
24 "desc" : "The {@link Roo.TabPanel} this TabPanelItem belongs to",
30 "desc" : "The id of this TabPanelItem",
36 "desc" : "The text for the tab of this TabPanelItem",
42 "desc" : "True to allow this TabPanelItem to be closable (defaults to false)",
53 "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>",
54 "memberOf" : "Roo.util.Observable",
63 "desc" : "Set a URL to be used to load the content for this TabPanelItem.",
64 "sig" : "(url, params, loadOnce)",
68 "isConstructor" : false,
79 "type" : "String/Function",
80 "desc" : "The URL to load the content from, or a function to call to get the URL",
85 "type" : "String/Object",
86 "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)",
92 "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)",
99 "type" : "Roo.UpdateManager",
100 "desc" : "The UpdateManager"
107 "desc" : "Returns the text for this tab",
108 "sig" : "()\n{\n\n}",
112 "isConstructor" : false,
132 "desc" : "Returns true if this tab is \"hidden\"",
133 "sig" : "()\n{\n\n}",
137 "isConstructor" : false,
157 "desc" : "Sets the text for the tab (Note: this also sets the tooltip text)",
162 "isConstructor" : false,
174 "desc" : "The tab's text and tooltip",
183 "desc" : "Activates this TabPanelItem -- this <b>does</b> deactivate the currently active TabPanelItem.",
184 "sig" : "()\n{\n\n}",
188 "isConstructor" : false,
202 "desc" : "Returns true if this tab is the active tab.",
203 "sig" : "()\n{\n\n}",
207 "isConstructor" : false,
225 "name" : "setContent",
227 "desc" : "Sets the content for this TabPanelItem.",
228 "sig" : "(content, loadScripts)",
232 "isConstructor" : false,
244 "desc" : "The content",
248 "name" : "loadScripts",
250 "desc" : "true to look for and load scripts",
259 "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.",
260 "sig" : "()\n{\n\n}",
264 "isConstructor" : false,
276 "name" : "setHidden",
278 "desc" : "Show or hide the tab",
283 "isConstructor" : false,
295 "desc" : "True to hide or false to show.",
302 "name" : "setTooltip",
304 "desc" : "Set the tooltip for the tab.",
309 "isConstructor" : false,
321 "desc" : "The tab's tooltip",
330 "desc" : "Enables this TabPanelItem if it was previously disabled.",
331 "sig" : "()\n{\n\n}",
335 "isConstructor" : false,
347 "name" : "getUpdateManager",
349 "desc" : "Gets the {@link Roo.UpdateManager} for the body of this TabPanelItem. Enables you to perform Ajax updates.",
350 "sig" : "()\n{\n\n}",
354 "isConstructor" : false,
366 "type" : "Roo.UpdateManager",
367 "desc" : "The UpdateManager"
374 "desc" : "Disables this TabPanelItem -- this does nothing if this is the active TabPanelItem.",
375 "sig" : "()\n{\n\n}",
379 "isConstructor" : false,
393 "desc" : "Hides this TabPanelItem -- if you don't activate another TabPanelItem this could look odd.",
394 "sig" : "()\n{\n\n}",
398 "isConstructor" : false,
412 "desc" : "Shows this TabPanelItem -- this <b>does not</b> deactivate the currently active TabPanelItem.",
413 "sig" : "()\n{\n\n}",
417 "isConstructor" : false,
429 "name" : "purgeListeners",
431 "desc" : "Removes all listeners for this object",
432 "sig" : "()\n{\n\n}",
434 "memberOf" : "Roo.util.Observable",
436 "isConstructor" : false,
450 "desc" : "Appends an event handler to this element (shorthand for addListener)",
451 "sig" : "(eventName, handler, scope, options)",
453 "memberOf" : "Roo.util.Observable",
455 "isConstructor" : false,
465 "name" : "eventName",
467 "desc" : "The type of event to listen for",
473 "desc" : "The method the event invokes",
479 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
485 "desc" : "(optional)",
494 "desc" : "Removes a listener (shorthand for removeListener)",
495 "sig" : "(eventName, handler, scope)",
497 "memberOf" : "Roo.util.Observable",
499 "isConstructor" : false,
509 "name" : "eventName",
511 "desc" : "The type of event to listen for",
517 "desc" : "The handler to remove",
523 "desc" : "(optional) The scope (this object) for the handler",
530 "name" : "addEvents",
532 "desc" : "Used to define events on this Observable",
535 "memberOf" : "Roo.util.Observable",
537 "isConstructor" : false,
549 "desc" : "The object with the events defined",
556 "name" : "releaseCapture",
558 "desc" : "Removes <b>all</b> added captures from the Observable.",
561 "memberOf" : "Roo.util.Observable",
563 "isConstructor" : false,
574 "type" : "Observable",
575 "desc" : "The Observable to release",
582 "name" : "removeListener",
584 "desc" : "Removes a listener",
585 "sig" : "(eventName, handler, scope)",
587 "memberOf" : "Roo.util.Observable",
589 "isConstructor" : false,
599 "name" : "eventName",
601 "desc" : "The type of event to listen for",
607 "desc" : "The handler to remove",
613 "desc" : "(optional) The scope (this object) for the handler",
620 "name" : "fireEvent",
622 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
623 "sig" : "(eventName, args)",
625 "memberOf" : "Roo.util.Observable",
627 "isConstructor" : false,
637 "name" : "eventName",
644 "type" : "Object...",
645 "desc" : "Variable number of parameters are passed to handlers",
653 "desc" : "returns false if any of the handlers return false otherwise it returns true"
658 "name" : "hasListener",
660 "desc" : "Checks to see if this object has any listeners for a specified event",
661 "sig" : "(eventName)",
663 "memberOf" : "Roo.util.Observable",
665 "isConstructor" : false,
675 "name" : "eventName",
677 "desc" : "The name of the event to check for",
685 "desc" : "True if the event is being listened for, else false"
692 "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.",
693 "sig" : "(o, fn, scope)",
695 "memberOf" : "Roo.util.Observable",
697 "isConstructor" : false,
708 "type" : "Observable",
709 "desc" : "The Observable to capture",
715 "desc" : "The function to call",
721 "desc" : "(optional) The scope (this object) for the fn",
728 "name" : "addListener",
730 "desc" : "Appends an event handler to this component",
731 "sig" : "(eventName, handler, scope, options)",
733 "memberOf" : "Roo.util.Observable",
735 "isConstructor" : false,
745 "name" : "eventName",
747 "desc" : "The type of event to listen for",
753 "desc" : "The method the event invokes",
759 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
765 "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>",
774 "name" : "beforeclose",
776 "desc" : "Fires before this tab is closed. To cancel the close, set cancel to true on e (e.cancel = true).",
777 "sig" : "function (_self, e)\n{\n\n}",
786 "type" : "Roo.TabPanelItem",
793 "desc" : "Set cancel to true on this object to cancel the close.",
802 "desc" : "Fires when this tab is closed.",
803 "sig" : "function (_self)\n{\n\n}",
812 "type" : "Roo.TabPanelItem",
822 "desc" : "Fires when this tab becomes the active tab.",
823 "sig" : "function (tabPanel, _self)\n{\n\n}",
832 "type" : "Roo.TabPanel",
833 "desc" : "The parent TabPanel",
838 "type" : "Roo.TabPanelItem",
846 "name" : "deactivate",
848 "desc" : "Fires when this tab is no longer the active tab.",
849 "sig" : "function (tabPanel, _self)\n{\n\n}",
858 "type" : "Roo.TabPanel",
859 "desc" : "The parent TabPanel",
864 "type" : "Roo.TabPanelItem",