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",
50 "desc" : "True to prevent creation of this menu item (defaults to false)",
51 "memberOf" : "Roo.menu.BaseItem",
56 "name" : "activeClass",
58 "desc" : "The CSS class to use when the item becomes activated (defaults to \"x-menu-item-active\")",
59 "memberOf" : "Roo.menu.BaseItem",
66 "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",
67 "memberOf" : "Roo.Component",
77 "desc" : "A function that will handle the click event of this menu item (defaults to undefined)",
78 "memberOf" : "Roo.menu.BaseItem",
85 "desc" : "Length of time in milliseconds to wait before hiding after a click (defaults to 100)",
86 "memberOf" : "Roo.menu.BaseItem",
91 "name" : "hideOnClick",
93 "desc" : "True to hide the containing menu after this item is clicked (defaults to true)",
94 "memberOf" : "Roo.menu.BaseItem",
99 "name" : "allowDomMove",
101 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
102 "memberOf" : "Roo.Component",
103 "isOptional" : false,
107 "name" : "actionMode",
109 "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",
110 "memberOf" : "Roo.Component",
111 "isOptional" : false,
115 "name" : "canActivate",
117 "desc" : "True if this item can be visually activated (defaults to false)",
118 "memberOf" : "Roo.menu.BaseItem",
119 "isOptional" : false,
123 "name" : "disableClass",
125 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
126 "memberOf" : "Roo.Component",
127 "isOptional" : false,
135 "desc" : "Returns the id of this component.",
136 "sig" : "()\n{\n\n}",
138 "memberOf" : "Roo.Component",
140 "isConstructor" : false,
160 "desc" : "If this is a lazy rendering component, render it to its container element.",
161 "sig" : "(container)",
163 "memberOf" : "Roo.Component",
165 "isConstructor" : false,
175 "name" : "container",
176 "type" : "String/HTMLElement/Element",
177 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
186 "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}.",
187 "sig" : "()\n{\n\n}",
189 "memberOf" : "Roo.Component",
191 "isConstructor" : false,
203 "name" : "isVisible",
205 "desc" : "Returns true if this component is visible.",
206 "sig" : "()\n{\n\n}",
208 "memberOf" : "Roo.Component",
210 "isConstructor" : false,
222 "name" : "setDisabled",
224 "desc" : "Convenience function for setting disabled/enabled by boolean.",
225 "sig" : "(disabled)",
227 "memberOf" : "Roo.Component",
229 "isConstructor" : false,
250 "desc" : "Hide this component.",
251 "sig" : "()\n{\n\n}",
253 "memberOf" : "Roo.Component",
255 "isConstructor" : false,
267 "type" : "Roo.Component",
275 "desc" : "Try to focus this component.",
276 "sig" : "(selectText)",
278 "memberOf" : "Roo.Component",
280 "isConstructor" : false,
290 "name" : "selectText",
292 "desc" : "True to also select the text in this component (if applicable)",
299 "type" : "Roo.Component",
307 "desc" : "Show this component.",
308 "sig" : "()\n{\n\n}",
310 "memberOf" : "Roo.Component",
312 "isConstructor" : false,
324 "type" : "Roo.Component",
332 "desc" : "Enable this component.",
333 "sig" : "()\n{\n\n}",
335 "memberOf" : "Roo.Component",
337 "isConstructor" : false,
349 "type" : "Roo.Component",
355 "name" : "setVisible",
357 "desc" : "Convenience function to hide or show this component by boolean.",
360 "memberOf" : "Roo.Component",
362 "isConstructor" : false,
374 "desc" : "True to show, false to hide",
381 "type" : "Roo.Component",
389 "desc" : "Disable this component.",
390 "sig" : "()\n{\n\n}",
392 "memberOf" : "Roo.Component",
394 "isConstructor" : false,
406 "type" : "Roo.Component",
414 "desc" : "Returns the underlying {@link Roo.Element}.",
415 "sig" : "()\n{\n\n}",
417 "memberOf" : "Roo.Component",
419 "isConstructor" : false,
431 "type" : "Roo.Element",
432 "desc" : "The element"
437 "name" : "purgeListeners",
439 "desc" : "Removes all listeners for this object",
440 "sig" : "()\n{\n\n}",
442 "memberOf" : "Roo.util.Observable",
444 "isConstructor" : false,
458 "desc" : "Appends an event handler to this element (shorthand for addListener)",
459 "sig" : "(eventName, handler, scope, options)",
461 "memberOf" : "Roo.util.Observable",
463 "isConstructor" : false,
473 "name" : "eventName",
475 "desc" : "The type of event to listen for",
481 "desc" : "The method the event invokes",
487 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
493 "desc" : "(optional)",
502 "desc" : "Removes a listener (shorthand for removeListener)",
503 "sig" : "(eventName, handler, scope)",
505 "memberOf" : "Roo.util.Observable",
507 "isConstructor" : false,
517 "name" : "eventName",
519 "desc" : "The type of event to listen for",
525 "desc" : "The handler to remove",
531 "desc" : "(optional) The scope (this object) for the handler",
538 "name" : "addEvents",
540 "desc" : "Used to define events on this Observable",
543 "memberOf" : "Roo.util.Observable",
545 "isConstructor" : false,
557 "desc" : "The object with the events defined",
564 "name" : "releaseCapture",
566 "desc" : "Removes <b>all</b> added captures from the Observable.",
569 "memberOf" : "Roo.util.Observable",
571 "isConstructor" : false,
582 "type" : "Observable",
583 "desc" : "The Observable to release",
590 "name" : "removeListener",
592 "desc" : "Removes a listener",
593 "sig" : "(eventName, handler, scope)",
595 "memberOf" : "Roo.util.Observable",
597 "isConstructor" : false,
607 "name" : "eventName",
609 "desc" : "The type of event to listen for",
615 "desc" : "The handler to remove",
621 "desc" : "(optional) The scope (this object) for the handler",
628 "name" : "fireEvent",
630 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
631 "sig" : "(eventName, args)",
633 "memberOf" : "Roo.util.Observable",
635 "isConstructor" : false,
645 "name" : "eventName",
652 "type" : "Object...",
653 "desc" : "Variable number of parameters are passed to handlers",
661 "desc" : "returns false if any of the handlers return false otherwise it returns true"
666 "name" : "hasListener",
668 "desc" : "Checks to see if this object has any listeners for a specified event",
669 "sig" : "(eventName)",
671 "memberOf" : "Roo.util.Observable",
673 "isConstructor" : false,
683 "name" : "eventName",
685 "desc" : "The name of the event to check for",
693 "desc" : "True if the event is being listened for, else false"
700 "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.",
701 "sig" : "(o, fn, scope)",
703 "memberOf" : "Roo.util.Observable",
705 "isConstructor" : false,
716 "type" : "Observable",
717 "desc" : "The Observable to capture",
723 "desc" : "The function to call",
729 "desc" : "(optional) The scope (this object) for the fn",
736 "name" : "addListener",
738 "desc" : "Appends an event handler to this component",
739 "sig" : "(eventName, handler, scope, options)",
741 "memberOf" : "Roo.util.Observable",
743 "isConstructor" : false,
753 "name" : "eventName",
755 "desc" : "The type of event to listen for",
761 "desc" : "The method the event invokes",
767 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
773 "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>",
784 "desc" : "Fires when this item is clicked",
785 "sig" : "function (_self, e)\n{\n\n}",
786 "memberOf" : "Roo.menu.BaseItem",
794 "type" : "Roo.menu.BaseItem",
800 "type" : "Roo.EventObject",
810 "desc" : "Fires when this item is activated",
811 "sig" : "function (_self)\n{\n\n}",
812 "memberOf" : "Roo.menu.BaseItem",
820 "type" : "Roo.menu.BaseItem",
828 "name" : "deactivate",
830 "desc" : "Fires when this item is deactivated",
831 "sig" : "function (_self)\n{\n\n}",
832 "memberOf" : "Roo.menu.BaseItem",
840 "type" : "Roo.menu.BaseItem",
848 "name" : "beforerender",
850 "desc" : "Fires before the component is rendered. Return false to stop the render.",
851 "sig" : "function (_self)\n{\n\n}",
852 "memberOf" : "Roo.Component",
860 "type" : "Roo.Component",
870 "desc" : "Fires after the component is disabled.",
871 "sig" : "function (_self)\n{\n\n}",
872 "memberOf" : "Roo.Component",
880 "type" : "Roo.Component",
890 "desc" : "Fires after the component is rendered.",
891 "sig" : "function (_self)\n{\n\n}",
892 "memberOf" : "Roo.Component",
900 "type" : "Roo.Component",
910 "desc" : "Fires after the component is destroyed.",
911 "sig" : "function (_self)\n{\n\n}",
912 "memberOf" : "Roo.Component",
920 "type" : "Roo.Component",
930 "desc" : "Fires after the component is hidden.",
931 "sig" : "function (_self)\n{\n\n}",
932 "memberOf" : "Roo.Component",
940 "type" : "Roo.Component",
948 "name" : "beforehide",
950 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
951 "sig" : "function (_self)\n{\n\n}",
952 "memberOf" : "Roo.Component",
960 "type" : "Roo.Component",
970 "desc" : "Fires after the component is shown.",
971 "sig" : "function (_self)\n{\n\n}",
972 "memberOf" : "Roo.Component",
980 "type" : "Roo.Component",
988 "name" : "beforeshow",
990 "desc" : "Fires before the component is shown. Return false to stop the show.",
991 "sig" : "function (_self)\n{\n\n}",
992 "memberOf" : "Roo.Component",
1000 "type" : "Roo.Component",
1002 "isOptional" : false
1009 "type" : "function",
1010 "desc" : "Fires after the component is enabled.",
1011 "sig" : "function (_self)\n{\n\n}",
1012 "memberOf" : "Roo.Component",
1020 "type" : "Roo.Component",
1022 "isOptional" : false
1028 "name" : "beforedestroy",
1029 "type" : "function",
1030 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1031 "sig" : "function (_self)\n{\n\n}",
1032 "memberOf" : "Roo.Component",
1040 "type" : "Roo.Component",
1042 "isOptional" : false