2 "name" : "Roo.form.TextItem",
11 "desc" : "Base class for form fields that provides default event handling, sizing, value handling and other functionality.",
12 "isSingleton" : false,
16 "isBuilderTop" : false,
17 "memberOf" : "TextItem",
26 "desc" : "Configuration options",
37 "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>",
38 "memberOf" : "Roo.util.Observable",
45 "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",
46 "memberOf" : "Roo.Component",
56 "desc" : "the tag for this item (default div)",
62 "name" : "allowDomMove",
64 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
65 "memberOf" : "Roo.Component",
72 "desc" : "the content for this item",
78 "name" : "actionMode",
80 "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",
81 "memberOf" : "Roo.Component",
88 "desc" : "width (optional) size of component",
89 "memberOf" : "Roo.BoxComponent",
96 "desc" : "height (optional) size of component",
97 "memberOf" : "Roo.BoxComponent",
102 "name" : "disableClass",
104 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
105 "memberOf" : "Roo.Component",
106 "isOptional" : false,
112 "name" : "updateBox",
114 "desc" : "Sets the current box measurements of the component's underlying element.",
117 "memberOf" : "Roo.BoxComponent",
119 "isConstructor" : false,
131 "desc" : "An object in the format {x, y, width, height}",
138 "name" : "setPagePosition",
140 "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.",
143 "memberOf" : "Roo.BoxComponent",
145 "isConstructor" : false,
157 "desc" : "The new x position",
163 "desc" : "The new y position",
172 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
173 "sig" : "()\n{\n\n}",
175 "memberOf" : "Roo.BoxComponent",
177 "isConstructor" : false,
191 "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}.",
192 "sig" : "(width, height)",
194 "memberOf" : "Roo.BoxComponent",
196 "isConstructor" : false,
207 "type" : "Number/Object",
208 "desc" : "The new width to set, or a size object in the format {width, height}",
214 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
221 "type" : "Roo.BoxComponent",
227 "name" : "getPosition",
229 "desc" : "Gets the current XY position of the component's underlying element.",
232 "memberOf" : "Roo.BoxComponent",
234 "isConstructor" : false,
246 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
254 "desc" : "The XY position of the element (e.g., [100, 200])"
261 "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.",
262 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
264 "memberOf" : "Roo.BoxComponent",
266 "isConstructor" : false,
278 "desc" : "The box-adjusted width that was set",
282 "name" : "adjHeight",
284 "desc" : "The box-adjusted height that was set",
290 "desc" : "The width that was originally specified",
294 "name" : "rawHeight",
296 "desc" : "The height that was originally specified",
305 "desc" : "Gets the current box measurements of the component's underlying element.",
308 "memberOf" : "Roo.BoxComponent",
310 "isConstructor" : false,
322 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
331 "desc" : "Gets the current size of the component's underlying element.",
332 "sig" : "()\n{\n\n}",
334 "memberOf" : "Roo.BoxComponent",
336 "isConstructor" : false,
349 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
354 "name" : "onPosition",
356 "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.",
359 "memberOf" : "Roo.BoxComponent",
361 "isConstructor" : false,
373 "desc" : "The new x position",
379 "desc" : "The new y position",
386 "name" : "setPosition",
388 "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.",
389 "sig" : "(left, top)",
391 "memberOf" : "Roo.BoxComponent",
393 "isConstructor" : false,
405 "desc" : "The new left",
411 "desc" : "The new top",
420 "desc" : "Returns the id of this component.",
421 "sig" : "()\n{\n\n}",
423 "memberOf" : "Roo.Component",
425 "isConstructor" : false,
445 "desc" : "If this is a lazy rendering component, render it to its container element.",
446 "sig" : "(container)",
448 "memberOf" : "Roo.Component",
450 "isConstructor" : false,
460 "name" : "container",
461 "type" : "String/HTMLElement/Element",
462 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
471 "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}.",
472 "sig" : "()\n{\n\n}",
474 "memberOf" : "Roo.Component",
476 "isConstructor" : false,
488 "name" : "isVisible",
490 "desc" : "Returns true if this component is visible.",
491 "sig" : "()\n{\n\n}",
493 "memberOf" : "Roo.Component",
495 "isConstructor" : false,
507 "name" : "setDisabled",
509 "desc" : "Convenience function for setting disabled/enabled by boolean.",
510 "sig" : "(disabled)",
512 "memberOf" : "Roo.Component",
514 "isConstructor" : false,
535 "desc" : "Hide this component.",
536 "sig" : "()\n{\n\n}",
538 "memberOf" : "Roo.Component",
540 "isConstructor" : false,
552 "type" : "Roo.Component",
560 "desc" : "Try to focus this component.",
561 "sig" : "(selectText)",
563 "memberOf" : "Roo.Component",
565 "isConstructor" : false,
575 "name" : "selectText",
577 "desc" : "True to also select the text in this component (if applicable)",
584 "type" : "Roo.Component",
592 "desc" : "Show this component.",
593 "sig" : "()\n{\n\n}",
595 "memberOf" : "Roo.Component",
597 "isConstructor" : false,
609 "type" : "Roo.Component",
617 "desc" : "Enable this component.",
618 "sig" : "()\n{\n\n}",
620 "memberOf" : "Roo.Component",
622 "isConstructor" : false,
634 "type" : "Roo.Component",
640 "name" : "setVisible",
642 "desc" : "Convenience function to hide or show this component by boolean.",
645 "memberOf" : "Roo.Component",
647 "isConstructor" : false,
659 "desc" : "True to show, false to hide",
666 "type" : "Roo.Component",
674 "desc" : "Disable this component.",
675 "sig" : "()\n{\n\n}",
677 "memberOf" : "Roo.Component",
679 "isConstructor" : false,
691 "type" : "Roo.Component",
699 "desc" : "Returns the underlying {@link Roo.Element}.",
700 "sig" : "()\n{\n\n}",
702 "memberOf" : "Roo.Component",
704 "isConstructor" : false,
716 "type" : "Roo.Element",
717 "desc" : "The element"
722 "name" : "purgeListeners",
724 "desc" : "Removes all listeners for this object",
725 "sig" : "()\n{\n\n}",
727 "memberOf" : "Roo.util.Observable",
729 "isConstructor" : false,
743 "desc" : "Appends an event handler to this element (shorthand for addListener)",
744 "sig" : "(eventName, handler, scope, options)",
746 "memberOf" : "Roo.util.Observable",
748 "isConstructor" : false,
758 "name" : "eventName",
760 "desc" : "The type of event to listen for",
766 "desc" : "The method the event invokes",
772 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
778 "desc" : "(optional)",
787 "desc" : "Removes a listener (shorthand for removeListener)",
788 "sig" : "(eventName, handler, scope)",
790 "memberOf" : "Roo.util.Observable",
792 "isConstructor" : false,
802 "name" : "eventName",
804 "desc" : "The type of event to listen for",
810 "desc" : "The handler to remove",
816 "desc" : "(optional) The scope (this object) for the handler",
823 "name" : "addEvents",
825 "desc" : "Used to define events on this Observable",
828 "memberOf" : "Roo.util.Observable",
830 "isConstructor" : false,
842 "desc" : "The object with the events defined",
849 "name" : "releaseCapture",
851 "desc" : "Removes <b>all</b> added captures from the Observable.",
854 "memberOf" : "Roo.util.Observable",
856 "isConstructor" : false,
867 "type" : "Observable",
868 "desc" : "The Observable to release",
875 "name" : "removeListener",
877 "desc" : "Removes a listener",
878 "sig" : "(eventName, handler, scope)",
880 "memberOf" : "Roo.util.Observable",
882 "isConstructor" : false,
892 "name" : "eventName",
894 "desc" : "The type of event to listen for",
900 "desc" : "The handler to remove",
906 "desc" : "(optional) The scope (this object) for the handler",
913 "name" : "fireEvent",
915 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
916 "sig" : "(eventName, args)",
918 "memberOf" : "Roo.util.Observable",
920 "isConstructor" : false,
930 "name" : "eventName",
937 "type" : "Object...",
938 "desc" : "Variable number of parameters are passed to handlers",
946 "desc" : "returns false if any of the handlers return false otherwise it returns true"
951 "name" : "hasListener",
953 "desc" : "Checks to see if this object has any listeners for a specified event",
954 "sig" : "(eventName)",
956 "memberOf" : "Roo.util.Observable",
958 "isConstructor" : false,
968 "name" : "eventName",
970 "desc" : "The name of the event to check for",
978 "desc" : "True if the event is being listened for, else false"
985 "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.",
986 "sig" : "(o, fn, scope)",
988 "memberOf" : "Roo.util.Observable",
990 "isConstructor" : false,
1001 "type" : "Observable",
1002 "desc" : "The Observable to capture",
1003 "isOptional" : false
1007 "type" : "Function",
1008 "desc" : "The function to call",
1009 "isOptional" : false
1014 "desc" : "(optional) The scope (this object) for the fn",
1015 "isOptional" : false
1021 "name" : "addListener",
1022 "type" : "function",
1023 "desc" : "Appends an event handler to this component",
1024 "sig" : "(eventName, handler, scope, options)",
1026 "memberOf" : "Roo.util.Observable",
1028 "isConstructor" : false,
1029 "isPrivate" : false,
1038 "name" : "eventName",
1040 "desc" : "The type of event to listen for",
1041 "isOptional" : false
1045 "type" : "Function",
1046 "desc" : "The method the event invokes",
1047 "isOptional" : false
1052 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1053 "isOptional" : false
1058 "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>",
1059 "isOptional" : false
1068 "type" : "function",
1069 "desc" : "Fires after the component is moved.",
1070 "sig" : "function (_self, x, y)\n{\n\n}",
1071 "memberOf" : "Roo.BoxComponent",
1079 "type" : "Roo.Component",
1081 "isOptional" : false
1086 "desc" : "The new x position",
1087 "isOptional" : false
1092 "desc" : "The new y position",
1093 "isOptional" : false
1100 "type" : "function",
1101 "desc" : "Fires after the component is resized.",
1102 "sig" : "function (_self, adjWidth, adjHeight, rawWidth, rawHeight)\n{\n\n}",
1103 "memberOf" : "Roo.BoxComponent",
1111 "type" : "Roo.Component",
1113 "isOptional" : false
1116 "name" : "adjWidth",
1118 "desc" : "The box-adjusted width that was set",
1119 "isOptional" : false
1122 "name" : "adjHeight",
1124 "desc" : "The box-adjusted height that was set",
1125 "isOptional" : false
1128 "name" : "rawWidth",
1130 "desc" : "The width that was originally specified",
1131 "isOptional" : false
1134 "name" : "rawHeight",
1136 "desc" : "The height that was originally specified",
1137 "isOptional" : false
1143 "name" : "beforerender",
1144 "type" : "function",
1145 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1146 "sig" : "function (_self)\n{\n\n}",
1147 "memberOf" : "Roo.Component",
1155 "type" : "Roo.Component",
1157 "isOptional" : false
1164 "type" : "function",
1165 "desc" : "Fires after the component is disabled.",
1166 "sig" : "function (_self)\n{\n\n}",
1167 "memberOf" : "Roo.Component",
1175 "type" : "Roo.Component",
1177 "isOptional" : false
1184 "type" : "function",
1185 "desc" : "Fires after the component is rendered.",
1186 "sig" : "function (_self)\n{\n\n}",
1187 "memberOf" : "Roo.Component",
1195 "type" : "Roo.Component",
1197 "isOptional" : false
1204 "type" : "function",
1205 "desc" : "Fires after the component is destroyed.",
1206 "sig" : "function (_self)\n{\n\n}",
1207 "memberOf" : "Roo.Component",
1215 "type" : "Roo.Component",
1217 "isOptional" : false
1224 "type" : "function",
1225 "desc" : "Fires after the component is hidden.",
1226 "sig" : "function (_self)\n{\n\n}",
1227 "memberOf" : "Roo.Component",
1235 "type" : "Roo.Component",
1237 "isOptional" : false
1243 "name" : "beforehide",
1244 "type" : "function",
1245 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1246 "sig" : "function (_self)\n{\n\n}",
1247 "memberOf" : "Roo.Component",
1255 "type" : "Roo.Component",
1257 "isOptional" : false
1264 "type" : "function",
1265 "desc" : "Fires after the component is shown.",
1266 "sig" : "function (_self)\n{\n\n}",
1267 "memberOf" : "Roo.Component",
1275 "type" : "Roo.Component",
1277 "isOptional" : false
1283 "name" : "beforeshow",
1284 "type" : "function",
1285 "desc" : "Fires before the component is shown. Return false to stop the show.",
1286 "sig" : "function (_self)\n{\n\n}",
1287 "memberOf" : "Roo.Component",
1295 "type" : "Roo.Component",
1297 "isOptional" : false
1304 "type" : "function",
1305 "desc" : "Fires after the component is enabled.",
1306 "sig" : "function (_self)\n{\n\n}",
1307 "memberOf" : "Roo.Component",
1315 "type" : "Roo.Component",
1317 "isOptional" : false
1323 "name" : "beforedestroy",
1324 "type" : "function",
1325 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1326 "sig" : "function (_self)\n{\n\n}",
1327 "memberOf" : "Roo.Component",
1335 "type" : "Roo.Component",
1337 "isOptional" : false