2 "name" : "Roo.form.TextItem",
8 "desc" : "Base class for form fields that provides default event handling, sizing, value handling and other functionality.",
12 "memberOf" : "TextItem",
21 "desc" : "Configuration options",
31 "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>",
32 "memberOf" : "Roo.util.Observable",
39 "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\".",
40 "memberOf" : "Roo.Component",
49 "desc" : "the tag for this item (default div)",
50 "memberOf" : "Roo.form.TextItem",
55 "name" : "allowDomMove",
57 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
58 "memberOf" : "Roo.Component",
65 "desc" : "the class for this item",
66 "memberOf" : "Roo.form.TextItem",
73 "desc" : "the content for this item",
74 "memberOf" : "Roo.form.TextItem",
79 "name" : "actionMode",
81 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
82 "memberOf" : "Roo.Component",
89 "desc" : "width (optional) size of component",
90 "memberOf" : "Roo.BoxComponent",
97 "desc" : "height (optional) size of component",
98 "memberOf" : "Roo.BoxComponent",
103 "name" : "disableClass",
105 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
106 "memberOf" : "Roo.Component",
113 "name" : "updateBox",
114 "desc" : "Sets the current box measurements of the component's underlying element.",
116 "isConstructor" : false,
118 "memberOf" : "Roo.BoxComponent",
127 "desc" : "An object in the format {x, y, width, height}",
135 "name" : "setPagePosition",
136 "desc" : "Sets the page XY position of the component. To set the left and top instead, use {@link #setPosition}.\nThis method fires the move event.",
138 "isConstructor" : false,
140 "memberOf" : "Roo.BoxComponent",
149 "desc" : "The new x position",
155 "desc" : "The new y position",
164 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
166 "isConstructor" : false,
168 "memberOf" : "Roo.BoxComponent",
180 "desc" : "Sets the width and height of the component. This method fires the resize event. This method can accept\neither width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}.",
182 "isConstructor" : false,
184 "memberOf" : "Roo.BoxComponent",
192 "type" : "Number/Object",
193 "desc" : "The new width to set, or a size object in the format {width, height}",
199 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
206 "type" : "Roo.BoxComponent",
212 "name" : "getPosition",
213 "desc" : "Gets the current XY position of the component's underlying element.",
215 "isConstructor" : false,
217 "memberOf" : "Roo.BoxComponent",
226 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
234 "desc" : "The XY position of the element (e.g., [100, 200])"
240 "desc" : "Called after the component is resized, this method is empty by default but can be implemented by any\nsubclass that needs to perform custom logic after a resize occurs.",
242 "isConstructor" : false,
244 "memberOf" : "Roo.BoxComponent",
253 "desc" : "The box-adjusted width that was set",
257 "name" : "adjHeight",
259 "desc" : "The box-adjusted height that was set",
265 "desc" : "The width that was originally specified",
269 "name" : "rawHeight",
271 "desc" : "The height that was originally specified",
280 "desc" : "Gets the current box measurements of the component's underlying element.",
282 "isConstructor" : false,
284 "memberOf" : "Roo.BoxComponent",
293 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
302 "desc" : "Gets the current size of the component's underlying element.",
304 "isConstructor" : false,
306 "memberOf" : "Roo.BoxComponent",
317 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
322 "name" : "onPosition",
323 "desc" : "Called after the component is moved, this method is empty by default but can be implemented by any\nsubclass that needs to perform custom logic after a move occurs.",
325 "isConstructor" : false,
327 "memberOf" : "Roo.BoxComponent",
336 "desc" : "The new x position",
342 "desc" : "The new y position",
350 "name" : "setPosition",
351 "desc" : "Sets the left and top of the component. To set the page XY position instead, use {@link #setPagePosition}.\nThis method fires the move event.",
353 "isConstructor" : false,
355 "memberOf" : "Roo.BoxComponent",
364 "desc" : "The new left",
370 "desc" : "The new top",
379 "desc" : "Returns the id of this component.",
381 "isConstructor" : false,
383 "memberOf" : "Roo.Component",
400 "desc" : "If this is a lazy rendering component, render it to its container element.",
402 "isConstructor" : false,
404 "memberOf" : "Roo.Component",
411 "name" : "container",
412 "type" : "String/HTMLElement/Element",
413 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
422 "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}.",
424 "isConstructor" : false,
426 "memberOf" : "Roo.Component",
437 "name" : "isVisible",
438 "desc" : "Returns true if this component is visible.",
440 "isConstructor" : false,
442 "memberOf" : "Roo.Component",
453 "name" : "setDisabled",
454 "desc" : "Convenience function for setting disabled/enabled by boolean.",
456 "isConstructor" : false,
458 "memberOf" : "Roo.Component",
476 "desc" : "Hide this component.",
478 "isConstructor" : false,
480 "memberOf" : "Roo.Component",
490 "type" : "Roo.Component",
497 "desc" : "Try to focus this component.",
499 "isConstructor" : false,
501 "memberOf" : "Roo.Component",
508 "name" : "selectText",
510 "desc" : "True to also select the text in this component (if applicable)",
517 "type" : "Roo.Component",
524 "desc" : "Show this component.",
526 "isConstructor" : false,
528 "memberOf" : "Roo.Component",
538 "type" : "Roo.Component",
545 "desc" : "Enable this component.",
547 "isConstructor" : false,
549 "memberOf" : "Roo.Component",
559 "type" : "Roo.Component",
565 "name" : "setVisible",
566 "desc" : "Convenience function to hide or show this component by boolean.",
568 "isConstructor" : false,
570 "memberOf" : "Roo.Component",
579 "desc" : "True to show, false to hide",
586 "type" : "Roo.Component",
593 "desc" : "Disable this component.",
595 "isConstructor" : false,
597 "memberOf" : "Roo.Component",
607 "type" : "Roo.Component",
614 "desc" : "Returns the underlying {@link Roo.Element}.",
616 "isConstructor" : false,
618 "memberOf" : "Roo.Component",
628 "type" : "Roo.Element",
629 "desc" : "The element"
634 "name" : "purgeListeners",
635 "desc" : "Removes all listeners for this object",
637 "isConstructor" : false,
639 "memberOf" : "Roo.util.Observable",
651 "desc" : "Appends an event handler to this element (shorthand for addListener)",
653 "isConstructor" : false,
655 "memberOf" : "Roo.util.Observable",
662 "name" : "eventName",
664 "desc" : "The type of event to listen for",
670 "desc" : "The method the event invokes",
676 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
682 "desc" : "(optional)",
691 "desc" : "Removes a listener (shorthand for removeListener)",
693 "isConstructor" : false,
695 "memberOf" : "Roo.util.Observable",
702 "name" : "eventName",
704 "desc" : "The type of event to listen for",
710 "desc" : "The handler to remove",
716 "desc" : "(optional) The scope (this object) for the handler",
724 "name" : "addEvents",
725 "desc" : "Used to define events on this Observable",
727 "isConstructor" : false,
729 "memberOf" : "Roo.util.Observable",
738 "desc" : "The object with the events defined",
746 "name" : "releaseCapture",
747 "desc" : "Removes <b>all</b> added captures from the Observable.",
749 "isConstructor" : false,
751 "memberOf" : "Roo.util.Observable",
759 "type" : "Observable",
760 "desc" : "The Observable to release",
768 "name" : "removeListener",
769 "desc" : "Removes a listener",
771 "isConstructor" : false,
773 "memberOf" : "Roo.util.Observable",
780 "name" : "eventName",
782 "desc" : "The type of event to listen for",
788 "desc" : "The handler to remove",
794 "desc" : "(optional) The scope (this object) for the handler",
802 "name" : "fireEvent",
803 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
805 "isConstructor" : false,
807 "memberOf" : "Roo.util.Observable",
814 "name" : "eventName",
821 "type" : "Object...",
822 "desc" : "Variable number of parameters are passed to handlers",
830 "desc" : "returns false if any of the handlers return false otherwise it returns true"
835 "name" : "hasListener",
836 "desc" : "Checks to see if this object has any listeners for a specified event",
838 "isConstructor" : false,
840 "memberOf" : "Roo.util.Observable",
847 "name" : "eventName",
849 "desc" : "The name of the event to check for",
857 "desc" : "True if the event is being listened for, else false"
863 "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.",
865 "isConstructor" : false,
867 "memberOf" : "Roo.util.Observable",
875 "type" : "Observable",
876 "desc" : "The Observable to capture",
882 "desc" : "The function to call",
888 "desc" : "(optional) The scope (this object) for the fn",
896 "name" : "addListener",
897 "desc" : "Appends an event handler to this component",
899 "isConstructor" : false,
901 "memberOf" : "Roo.util.Observable",
908 "name" : "eventName",
910 "desc" : "The type of event to listen for",
916 "desc" : "The method the event invokes",
922 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
928 "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>",
939 "desc" : "Fires after the component is moved.",
940 "memberOf" : "Roo.BoxComponent",
948 "type" : "Roo.Component",
955 "desc" : "The new x position",
961 "desc" : "The new y position",
970 "desc" : "Fires after the component is resized.",
971 "memberOf" : "Roo.BoxComponent",
979 "type" : "Roo.Component",
986 "desc" : "The box-adjusted width that was set",
990 "name" : "adjHeight",
992 "desc" : "The box-adjusted height that was set",
998 "desc" : "The width that was originally specified",
1002 "name" : "rawHeight",
1004 "desc" : "The height that was originally specified",
1005 "isOptional" : false
1012 "name" : "beforerender",
1013 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1014 "memberOf" : "Roo.Component",
1022 "type" : "Roo.Component",
1024 "isOptional" : false
1032 "desc" : "Fires after the component is disabled.",
1033 "memberOf" : "Roo.Component",
1041 "type" : "Roo.Component",
1043 "isOptional" : false
1051 "desc" : "Fires after the component is rendered.",
1052 "memberOf" : "Roo.Component",
1060 "type" : "Roo.Component",
1062 "isOptional" : false
1070 "desc" : "Fires after the component is destroyed.",
1071 "memberOf" : "Roo.Component",
1079 "type" : "Roo.Component",
1081 "isOptional" : false
1089 "desc" : "Fires after the component is hidden.",
1090 "memberOf" : "Roo.Component",
1098 "type" : "Roo.Component",
1100 "isOptional" : false
1107 "name" : "beforehide",
1108 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1109 "memberOf" : "Roo.Component",
1117 "type" : "Roo.Component",
1119 "isOptional" : false
1127 "desc" : "Fires after the component is shown.",
1128 "memberOf" : "Roo.Component",
1136 "type" : "Roo.Component",
1138 "isOptional" : false
1145 "name" : "beforeshow",
1146 "desc" : "Fires before the component is shown. Return false to stop the show.",
1147 "memberOf" : "Roo.Component",
1155 "type" : "Roo.Component",
1157 "isOptional" : false
1165 "desc" : "Fires after the component is enabled.",
1166 "memberOf" : "Roo.Component",
1174 "type" : "Roo.Component",
1176 "isOptional" : false
1183 "name" : "beforedestroy",
1184 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1185 "memberOf" : "Roo.Component",
1193 "type" : "Roo.Component",
1195 "isOptional" : false