2 "name" : "Roo.menu.Adapter",
8 "desc" : "A base utility class that adapts a non-menu component so that it can be wrapped by a menu item and added to a menu.\nIt provides basic rendering, activation management and enable/disable logic required to work in menus.",
16 "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>",
17 "memberOf" : "Roo.util.Observable",
24 "desc" : "True to prevent creation of this menu item (defaults to false)",
25 "memberOf" : "Roo.menu.BaseItem",
30 "name" : "activeClass",
32 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
33 "memberOf" : "Roo.menu.BaseItem",
40 "desc" : "How this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
41 "memberOf" : "Roo.Component",
50 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
51 "memberOf" : "Roo.menu.BaseItem",
58 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
59 "memberOf" : "Roo.menu.BaseItem",
64 "name" : "hideOnClick",
66 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
67 "memberOf" : "Roo.menu.BaseItem",
72 "name" : "allowDomMove",
74 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
75 "memberOf" : "Roo.Component",
80 "name" : "actionMode",
82 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
83 "memberOf" : "Roo.Component",
88 "name" : "canActivate",
90 "desc" : "True if this item can be visually activated (defaults to false)",
91 "memberOf" : "Roo.menu.BaseItem",
96 "name" : "disableClass",
98 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
99 "memberOf" : "Roo.Component",
107 "desc" : "Returns the id of this component.",
109 "isConstructor" : false,
111 "memberOf" : "Roo.Component",
128 "desc" : "If this is a lazy rendering component, render it to its container element.",
130 "isConstructor" : false,
132 "memberOf" : "Roo.Component",
139 "name" : "container",
140 "type" : "String/HTMLElement/Element",
141 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
150 "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
152 "isConstructor" : false,
154 "memberOf" : "Roo.Component",
165 "name" : "isVisible",
166 "desc" : "Returns true if this component is visible.",
168 "isConstructor" : false,
170 "memberOf" : "Roo.Component",
181 "name" : "setDisabled",
182 "desc" : "Convenience function for setting disabled/enabled by boolean.",
184 "isConstructor" : false,
186 "memberOf" : "Roo.Component",
204 "desc" : "Hide this component.",
206 "isConstructor" : false,
208 "memberOf" : "Roo.Component",
218 "type" : "Roo.Component",
225 "desc" : "Try to focus this component.",
227 "isConstructor" : false,
229 "memberOf" : "Roo.Component",
236 "name" : "selectText",
238 "desc" : "True to also select the text in this component (if applicable)",
245 "type" : "Roo.Component",
252 "desc" : "Show this component.",
254 "isConstructor" : false,
256 "memberOf" : "Roo.Component",
266 "type" : "Roo.Component",
273 "desc" : "Enable this component.",
275 "isConstructor" : false,
277 "memberOf" : "Roo.Component",
287 "type" : "Roo.Component",
293 "name" : "setVisible",
294 "desc" : "Convenience function to hide or show this component by boolean.",
296 "isConstructor" : false,
298 "memberOf" : "Roo.Component",
307 "desc" : "True to show, false to hide",
314 "type" : "Roo.Component",
321 "desc" : "Disable this component.",
323 "isConstructor" : false,
325 "memberOf" : "Roo.Component",
335 "type" : "Roo.Component",
342 "desc" : "Returns the underlying {@link Roo.Element}.",
344 "isConstructor" : false,
346 "memberOf" : "Roo.Component",
356 "type" : "Roo.Element",
357 "desc" : "The element"
362 "name" : "purgeListeners",
363 "desc" : "Removes all listeners for this object",
365 "isConstructor" : false,
367 "memberOf" : "Roo.util.Observable",
379 "desc" : "Appends an event handler to this element (shorthand for addListener)",
381 "isConstructor" : false,
383 "memberOf" : "Roo.util.Observable",
390 "name" : "eventName",
392 "desc" : "The type of event to listen for",
398 "desc" : "The method the event invokes",
404 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
410 "desc" : "(optional)",
419 "desc" : "Removes a listener (shorthand for removeListener)",
421 "isConstructor" : false,
423 "memberOf" : "Roo.util.Observable",
430 "name" : "eventName",
432 "desc" : "The type of event to listen for",
438 "desc" : "The handler to remove",
444 "desc" : "(optional) The scope (this object) for the handler",
452 "name" : "addEvents",
453 "desc" : "Used to define events on this Observable",
455 "isConstructor" : false,
457 "memberOf" : "Roo.util.Observable",
466 "desc" : "The object with the events defined",
474 "name" : "releaseCapture",
475 "desc" : "Removes <b>all</b> added captures from the Observable.",
477 "isConstructor" : false,
479 "memberOf" : "Roo.util.Observable",
487 "type" : "Observable",
488 "desc" : "The Observable to release",
496 "name" : "removeListener",
497 "desc" : "Removes a listener",
499 "isConstructor" : false,
501 "memberOf" : "Roo.util.Observable",
508 "name" : "eventName",
510 "desc" : "The type of event to listen for",
516 "desc" : "The handler to remove",
522 "desc" : "(optional) The scope (this object) for the handler",
530 "name" : "fireEvent",
531 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
533 "isConstructor" : false,
535 "memberOf" : "Roo.util.Observable",
542 "name" : "eventName",
549 "type" : "Object...",
550 "desc" : "Variable number of parameters are passed to handlers",
558 "desc" : "returns false if any of the handlers return false otherwise it returns true"
563 "name" : "hasListener",
564 "desc" : "Checks to see if this object has any listeners for a specified event",
566 "isConstructor" : false,
568 "memberOf" : "Roo.util.Observable",
575 "name" : "eventName",
577 "desc" : "The name of the event to check for",
585 "desc" : "True if the event is being listened for, else false"
591 "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.",
593 "isConstructor" : false,
595 "memberOf" : "Roo.util.Observable",
603 "type" : "Observable",
604 "desc" : "The Observable to capture",
610 "desc" : "The function to call",
616 "desc" : "(optional) The scope (this object) for the fn",
624 "name" : "addListener",
625 "desc" : "Appends an event handler to this component",
627 "isConstructor" : false,
629 "memberOf" : "Roo.util.Observable",
636 "name" : "eventName",
638 "desc" : "The type of event to listen for",
644 "desc" : "The method the event invokes",
650 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
656 "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>",
667 "desc" : "Fires when this item is clicked",
668 "memberOf" : "Roo.menu.BaseItem",
676 "type" : "Roo.menu.BaseItem",
682 "type" : "Roo.EventObject",
692 "desc" : "Fires when this item is activated",
693 "memberOf" : "Roo.menu.BaseItem",
701 "type" : "Roo.menu.BaseItem",
710 "name" : "deactivate",
711 "desc" : "Fires when this item is deactivated",
712 "memberOf" : "Roo.menu.BaseItem",
720 "type" : "Roo.menu.BaseItem",
729 "name" : "beforerender",
730 "desc" : "Fires before the component is rendered. Return false to stop the render.",
731 "memberOf" : "Roo.Component",
739 "type" : "Roo.Component",
749 "desc" : "Fires after the component is disabled.",
750 "memberOf" : "Roo.Component",
758 "type" : "Roo.Component",
768 "desc" : "Fires after the component is rendered.",
769 "memberOf" : "Roo.Component",
777 "type" : "Roo.Component",
787 "desc" : "Fires after the component is destroyed.",
788 "memberOf" : "Roo.Component",
796 "type" : "Roo.Component",
806 "desc" : "Fires after the component is hidden.",
807 "memberOf" : "Roo.Component",
815 "type" : "Roo.Component",
824 "name" : "beforehide",
825 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
826 "memberOf" : "Roo.Component",
834 "type" : "Roo.Component",
844 "desc" : "Fires after the component is shown.",
845 "memberOf" : "Roo.Component",
853 "type" : "Roo.Component",
862 "name" : "beforeshow",
863 "desc" : "Fires before the component is shown. Return false to stop the show.",
864 "memberOf" : "Roo.Component",
872 "type" : "Roo.Component",
882 "desc" : "Fires after the component is enabled.",
883 "memberOf" : "Roo.Component",
891 "type" : "Roo.Component",
900 "name" : "beforedestroy",
901 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
902 "memberOf" : "Roo.Component",
910 "type" : "Roo.Component",