2 "name" : "Roo.menu.Adapter",
16 "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.",
17 "isSingleton" : false,
21 "isBuilderTop" : false,
22 "memberOf" : "Adapter",
31 "desc" : "Configuration options",
42 "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>",
43 "memberOf" : "Roo.util.Observable"
48 "desc" : "True to prevent creation of this menu item (defaults to false)",
49 "memberOf" : "Roo.menu.BaseItem"
52 "name" : "activeClass",
54 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
55 "memberOf" : "Roo.menu.BaseItem"
60 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
61 "memberOf" : "Roo.Component"
66 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
67 "memberOf" : "Roo.menu.BaseItem"
72 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
73 "memberOf" : "Roo.menu.BaseItem"
76 "name" : "hideOnClick",
78 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
79 "memberOf" : "Roo.menu.BaseItem"
82 "name" : "allowDomMove",
84 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
85 "memberOf" : "Roo.Component"
88 "name" : "actionMode",
90 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
91 "memberOf" : "Roo.Component"
94 "name" : "canActivate",
96 "desc" : "True if this item can be visually activated (defaults to false)",
97 "memberOf" : "Roo.menu.BaseItem"
100 "name" : "disableClass",
102 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
103 "memberOf" : "Roo.Component"
110 "desc" : "Returns the id of this component.",
111 "sig" : "()\n{\n\n}",
113 "memberOf" : "Roo.Component",
115 "isConstructor" : false,
135 "desc" : "If this is a lazy rendering component, render it to its container element.",
136 "sig" : "(container)",
138 "memberOf" : "Roo.Component",
140 "isConstructor" : false,
150 "name" : "container",
151 "type" : "String/HTMLElement/Element",
152 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
161 "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}.",
162 "sig" : "()\n{\n\n}",
164 "memberOf" : "Roo.Component",
166 "isConstructor" : false,
178 "name" : "isVisible",
180 "desc" : "Returns true if this component is visible.",
181 "sig" : "()\n{\n\n}",
183 "memberOf" : "Roo.Component",
185 "isConstructor" : false,
197 "name" : "setDisabled",
199 "desc" : "Convenience function for setting disabled/enabled by boolean.",
200 "sig" : "(disabled)",
202 "memberOf" : "Roo.Component",
204 "isConstructor" : false,
225 "desc" : "Hide this component.",
226 "sig" : "()\n{\n\n}",
228 "memberOf" : "Roo.Component",
230 "isConstructor" : false,
242 "type" : "Roo.Component",
250 "desc" : "Try to focus this component.",
251 "sig" : "(selectText)",
253 "memberOf" : "Roo.Component",
255 "isConstructor" : false,
265 "name" : "selectText",
267 "desc" : "True to also select the text in this component (if applicable)",
274 "type" : "Roo.Component",
282 "desc" : "Show this component.",
283 "sig" : "()\n{\n\n}",
285 "memberOf" : "Roo.Component",
287 "isConstructor" : false,
299 "type" : "Roo.Component",
307 "desc" : "Enable this component.",
308 "sig" : "()\n{\n\n}",
310 "memberOf" : "Roo.Component",
312 "isConstructor" : false,
324 "type" : "Roo.Component",
330 "name" : "setVisible",
332 "desc" : "Convenience function to hide or show this component by boolean.",
335 "memberOf" : "Roo.Component",
337 "isConstructor" : false,
349 "desc" : "True to show, false to hide",
356 "type" : "Roo.Component",
364 "desc" : "Disable this component.",
365 "sig" : "()\n{\n\n}",
367 "memberOf" : "Roo.Component",
369 "isConstructor" : false,
381 "type" : "Roo.Component",
389 "desc" : "Returns the underlying {@link Roo.Element}.",
390 "sig" : "()\n{\n\n}",
392 "memberOf" : "Roo.Component",
394 "isConstructor" : false,
406 "type" : "Roo.Element",
407 "desc" : "The element"
412 "name" : "purgeListeners",
414 "desc" : "Removes all listeners for this object",
415 "sig" : "()\n{\n\n}",
417 "memberOf" : "Roo.util.Observable",
419 "isConstructor" : false,
433 "desc" : "Appends an event handler to this element (shorthand for addListener)",
434 "sig" : "(eventName, handler, scope, options)",
436 "memberOf" : "Roo.util.Observable",
438 "isConstructor" : false,
448 "name" : "eventName",
450 "desc" : "The type of event to listen for",
456 "desc" : "The method the event invokes",
462 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
468 "desc" : "(optional)",
477 "desc" : "Removes a listener (shorthand for removeListener)",
478 "sig" : "(eventName, handler, scope)",
480 "memberOf" : "Roo.util.Observable",
482 "isConstructor" : false,
492 "name" : "eventName",
494 "desc" : "The type of event to listen for",
500 "desc" : "The handler to remove",
506 "desc" : "(optional) The scope (this object) for the handler",
513 "name" : "addEvents",
515 "desc" : "Used to define events on this Observable",
518 "memberOf" : "Roo.util.Observable",
520 "isConstructor" : false,
532 "desc" : "The object with the events defined",
539 "name" : "releaseCapture",
541 "desc" : "Removes <b>all</b> added captures from the Observable.",
544 "memberOf" : "Roo.util.Observable",
546 "isConstructor" : false,
557 "type" : "Observable",
558 "desc" : "The Observable to release",
565 "name" : "removeListener",
567 "desc" : "Removes a listener",
568 "sig" : "(eventName, handler, scope)",
570 "memberOf" : "Roo.util.Observable",
572 "isConstructor" : false,
582 "name" : "eventName",
584 "desc" : "The type of event to listen for",
590 "desc" : "The handler to remove",
596 "desc" : "(optional) The scope (this object) for the handler",
603 "name" : "fireEvent",
605 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
606 "sig" : "(eventName, args)",
608 "memberOf" : "Roo.util.Observable",
610 "isConstructor" : false,
620 "name" : "eventName",
627 "type" : "Object...",
628 "desc" : "Variable number of parameters are passed to handlers",
636 "desc" : "returns false if any of the handlers return false otherwise it returns true"
641 "name" : "hasListener",
643 "desc" : "Checks to see if this object has any listeners for a specified event",
644 "sig" : "(eventName)",
646 "memberOf" : "Roo.util.Observable",
648 "isConstructor" : false,
658 "name" : "eventName",
660 "desc" : "The name of the event to check for",
668 "desc" : "True if the event is being listened for, else false"
675 "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.",
676 "sig" : "(o, fn, scope)",
678 "memberOf" : "Roo.util.Observable",
680 "isConstructor" : false,
691 "type" : "Observable",
692 "desc" : "The Observable to capture",
698 "desc" : "The function to call",
704 "desc" : "(optional) The scope (this object) for the fn",
711 "name" : "addListener",
713 "desc" : "Appends an event handler to this component",
714 "sig" : "(eventName, handler, scope, options)",
716 "memberOf" : "Roo.util.Observable",
718 "isConstructor" : false,
728 "name" : "eventName",
730 "desc" : "The type of event to listen for",
736 "desc" : "The method the event invokes",
742 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
748 "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>",
759 "desc" : "Fires when this item is clicked",
760 "sig" : "function (_self, e)\n{\n\n}",
761 "memberOf" : "Roo.menu.BaseItem",
769 "type" : "Roo.menu.BaseItem",
775 "type" : "Roo.EventObject",
785 "desc" : "Fires when this item is activated",
786 "sig" : "function (_self)\n{\n\n}",
787 "memberOf" : "Roo.menu.BaseItem",
795 "type" : "Roo.menu.BaseItem",
803 "name" : "deactivate",
805 "desc" : "Fires when this item is deactivated",
806 "sig" : "function (_self)\n{\n\n}",
807 "memberOf" : "Roo.menu.BaseItem",
815 "type" : "Roo.menu.BaseItem",
823 "name" : "beforerender",
825 "desc" : "Fires before the component is rendered. Return false to stop the render.",
826 "sig" : "function (_self)\n{\n\n}",
827 "memberOf" : "Roo.Component",
835 "type" : "Roo.Component",
845 "desc" : "Fires after the component is disabled.",
846 "sig" : "function (_self)\n{\n\n}",
847 "memberOf" : "Roo.Component",
855 "type" : "Roo.Component",
865 "desc" : "Fires after the component is rendered.",
866 "sig" : "function (_self)\n{\n\n}",
867 "memberOf" : "Roo.Component",
875 "type" : "Roo.Component",
885 "desc" : "Fires after the component is destroyed.",
886 "sig" : "function (_self)\n{\n\n}",
887 "memberOf" : "Roo.Component",
895 "type" : "Roo.Component",
905 "desc" : "Fires after the component is hidden.",
906 "sig" : "function (_self)\n{\n\n}",
907 "memberOf" : "Roo.Component",
915 "type" : "Roo.Component",
923 "name" : "beforehide",
925 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
926 "sig" : "function (_self)\n{\n\n}",
927 "memberOf" : "Roo.Component",
935 "type" : "Roo.Component",
945 "desc" : "Fires after the component is shown.",
946 "sig" : "function (_self)\n{\n\n}",
947 "memberOf" : "Roo.Component",
955 "type" : "Roo.Component",
963 "name" : "beforeshow",
965 "desc" : "Fires before the component is shown. Return false to stop the show.",
966 "sig" : "function (_self)\n{\n\n}",
967 "memberOf" : "Roo.Component",
975 "type" : "Roo.Component",
985 "desc" : "Fires after the component is enabled.",
986 "sig" : "function (_self)\n{\n\n}",
987 "memberOf" : "Roo.Component",
995 "type" : "Roo.Component",
1003 "name" : "beforedestroy",
1004 "type" : "function",
1005 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1006 "sig" : "function (_self)\n{\n\n}",
1007 "memberOf" : "Roo.Component",
1015 "type" : "Roo.Component",
1017 "isOptional" : false