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)",
64 "desc" : "css styles to add to component\neg. text-align:right;",
65 "memberOf" : "Roo.Component",
70 "name" : "allowDomMove",
72 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
73 "memberOf" : "Roo.Component",
80 "desc" : "the content for this item",
86 "name" : "actionMode",
88 "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",
89 "memberOf" : "Roo.Component",
96 "desc" : "width (optional) size of component",
97 "memberOf" : "Roo.BoxComponent",
104 "desc" : "height (optional) size of component",
105 "memberOf" : "Roo.BoxComponent",
106 "isOptional" : false,
110 "name" : "disableClass",
112 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
113 "memberOf" : "Roo.Component",
114 "isOptional" : false,
120 "name" : "updateBox",
122 "desc" : "Sets the current box measurements of the component's underlying element.",
125 "memberOf" : "Roo.BoxComponent",
127 "isConstructor" : false,
139 "desc" : "An object in the format {x, y, width, height}",
146 "name" : "setPagePosition",
148 "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.",
151 "memberOf" : "Roo.BoxComponent",
153 "isConstructor" : false,
165 "desc" : "The new x position",
171 "desc" : "The new y position",
180 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
181 "sig" : "()\n{\n\n}",
183 "memberOf" : "Roo.BoxComponent",
185 "isConstructor" : false,
199 "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}.",
200 "sig" : "(width, height)",
202 "memberOf" : "Roo.BoxComponent",
204 "isConstructor" : false,
215 "type" : "Number/Object",
216 "desc" : "The new width to set, or a size object in the format {width, height}",
222 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
229 "type" : "Roo.BoxComponent",
235 "name" : "getPosition",
237 "desc" : "Gets the current XY position of the component's underlying element.",
240 "memberOf" : "Roo.BoxComponent",
242 "isConstructor" : false,
254 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
262 "desc" : "The XY position of the element (e.g., [100, 200])"
269 "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.",
270 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
272 "memberOf" : "Roo.BoxComponent",
274 "isConstructor" : false,
286 "desc" : "The box-adjusted width that was set",
290 "name" : "adjHeight",
292 "desc" : "The box-adjusted height that was set",
298 "desc" : "The width that was originally specified",
302 "name" : "rawHeight",
304 "desc" : "The height that was originally specified",
313 "desc" : "Gets the current box measurements of the component's underlying element.",
316 "memberOf" : "Roo.BoxComponent",
318 "isConstructor" : false,
330 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
339 "desc" : "Gets the current size of the component's underlying element.",
340 "sig" : "()\n{\n\n}",
342 "memberOf" : "Roo.BoxComponent",
344 "isConstructor" : false,
357 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
362 "name" : "onPosition",
364 "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.",
367 "memberOf" : "Roo.BoxComponent",
369 "isConstructor" : false,
381 "desc" : "The new x position",
387 "desc" : "The new y position",
394 "name" : "setPosition",
396 "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.",
397 "sig" : "(left, top)",
399 "memberOf" : "Roo.BoxComponent",
401 "isConstructor" : false,
413 "desc" : "The new left",
419 "desc" : "The new top",
428 "desc" : "Returns the id of this component.",
429 "sig" : "()\n{\n\n}",
431 "memberOf" : "Roo.Component",
433 "isConstructor" : false,
453 "desc" : "If this is a lazy rendering component, render it to its container element.",
454 "sig" : "(container)",
456 "memberOf" : "Roo.Component",
458 "isConstructor" : false,
468 "name" : "container",
469 "type" : "String/HTMLElement/Element",
470 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
479 "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}.",
480 "sig" : "()\n{\n\n}",
482 "memberOf" : "Roo.Component",
484 "isConstructor" : false,
496 "name" : "isVisible",
498 "desc" : "Returns true if this component is visible.",
499 "sig" : "()\n{\n\n}",
501 "memberOf" : "Roo.Component",
503 "isConstructor" : false,
515 "name" : "setDisabled",
517 "desc" : "Convenience function for setting disabled/enabled by boolean.",
518 "sig" : "(disabled)",
520 "memberOf" : "Roo.Component",
522 "isConstructor" : false,
543 "desc" : "Hide this component.",
544 "sig" : "()\n{\n\n}",
546 "memberOf" : "Roo.Component",
548 "isConstructor" : false,
560 "type" : "Roo.Component",
568 "desc" : "Try to focus this component.",
569 "sig" : "(selectText)",
571 "memberOf" : "Roo.Component",
573 "isConstructor" : false,
583 "name" : "selectText",
585 "desc" : "True to also select the text in this component (if applicable)",
592 "type" : "Roo.Component",
600 "desc" : "Show this component.",
601 "sig" : "()\n{\n\n}",
603 "memberOf" : "Roo.Component",
605 "isConstructor" : false,
617 "type" : "Roo.Component",
625 "desc" : "Enable this component.",
626 "sig" : "()\n{\n\n}",
628 "memberOf" : "Roo.Component",
630 "isConstructor" : false,
642 "type" : "Roo.Component",
648 "name" : "setVisible",
650 "desc" : "Convenience function to hide or show this component by boolean.",
653 "memberOf" : "Roo.Component",
655 "isConstructor" : false,
667 "desc" : "True to show, false to hide",
674 "type" : "Roo.Component",
682 "desc" : "Disable this component.",
683 "sig" : "()\n{\n\n}",
685 "memberOf" : "Roo.Component",
687 "isConstructor" : false,
699 "type" : "Roo.Component",
707 "desc" : "Returns the underlying {@link Roo.Element}.",
708 "sig" : "()\n{\n\n}",
710 "memberOf" : "Roo.Component",
712 "isConstructor" : false,
724 "type" : "Roo.Element",
725 "desc" : "The element"
730 "name" : "purgeListeners",
732 "desc" : "Removes all listeners for this object",
733 "sig" : "()\n{\n\n}",
735 "memberOf" : "Roo.util.Observable",
737 "isConstructor" : false,
751 "desc" : "Appends an event handler to this element (shorthand for addListener)",
752 "sig" : "(eventName, handler, scope, options)",
754 "memberOf" : "Roo.util.Observable",
756 "isConstructor" : false,
766 "name" : "eventName",
768 "desc" : "The type of event to listen for",
774 "desc" : "The method the event invokes",
780 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
786 "desc" : "(optional)",
795 "desc" : "Removes a listener (shorthand for removeListener)",
796 "sig" : "(eventName, handler, scope)",
798 "memberOf" : "Roo.util.Observable",
800 "isConstructor" : false,
810 "name" : "eventName",
812 "desc" : "The type of event to listen for",
818 "desc" : "The handler to remove",
824 "desc" : "(optional) The scope (this object) for the handler",
831 "name" : "addEvents",
833 "desc" : "Used to define events on this Observable",
836 "memberOf" : "Roo.util.Observable",
838 "isConstructor" : false,
850 "desc" : "The object with the events defined",
857 "name" : "releaseCapture",
859 "desc" : "Removes <b>all</b> added captures from the Observable.",
862 "memberOf" : "Roo.util.Observable",
864 "isConstructor" : false,
875 "type" : "Observable",
876 "desc" : "The Observable to release",
883 "name" : "removeListener",
885 "desc" : "Removes a listener",
886 "sig" : "(eventName, handler, scope)",
888 "memberOf" : "Roo.util.Observable",
890 "isConstructor" : false,
900 "name" : "eventName",
902 "desc" : "The type of event to listen for",
908 "desc" : "The handler to remove",
914 "desc" : "(optional) The scope (this object) for the handler",
921 "name" : "fireEvent",
923 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
924 "sig" : "(eventName, args)",
926 "memberOf" : "Roo.util.Observable",
928 "isConstructor" : false,
938 "name" : "eventName",
945 "type" : "Object...",
946 "desc" : "Variable number of parameters are passed to handlers",
954 "desc" : "returns false if any of the handlers return false otherwise it returns true"
959 "name" : "hasListener",
961 "desc" : "Checks to see if this object has any listeners for a specified event",
962 "sig" : "(eventName)",
964 "memberOf" : "Roo.util.Observable",
966 "isConstructor" : false,
976 "name" : "eventName",
978 "desc" : "The name of the event to check for",
986 "desc" : "True if the event is being listened for, else false"
993 "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.",
994 "sig" : "(o, fn, scope)",
996 "memberOf" : "Roo.util.Observable",
998 "isConstructor" : false,
1009 "type" : "Observable",
1010 "desc" : "The Observable to capture",
1011 "isOptional" : false
1015 "type" : "Function",
1016 "desc" : "The function to call",
1017 "isOptional" : false
1022 "desc" : "(optional) The scope (this object) for the fn",
1023 "isOptional" : false
1029 "name" : "addListener",
1030 "type" : "function",
1031 "desc" : "Appends an event handler to this component",
1032 "sig" : "(eventName, handler, scope, options)",
1034 "memberOf" : "Roo.util.Observable",
1036 "isConstructor" : false,
1037 "isPrivate" : false,
1046 "name" : "eventName",
1048 "desc" : "The type of event to listen for",
1049 "isOptional" : false
1053 "type" : "Function",
1054 "desc" : "The method the event invokes",
1055 "isOptional" : false
1060 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1061 "isOptional" : false
1066 "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>",
1067 "isOptional" : false
1076 "type" : "function",
1077 "desc" : "Fires after the component is moved.",
1078 "sig" : "function (_self, x, y)\n{\n\n}",
1079 "memberOf" : "Roo.BoxComponent",
1087 "type" : "Roo.Component",
1089 "isOptional" : false
1094 "desc" : "The new x position",
1095 "isOptional" : false
1100 "desc" : "The new y position",
1101 "isOptional" : false
1108 "type" : "function",
1109 "desc" : "Fires after the component is resized.",
1110 "sig" : "function (_self, adjWidth, adjHeight, rawWidth, rawHeight)\n{\n\n}",
1111 "memberOf" : "Roo.BoxComponent",
1119 "type" : "Roo.Component",
1121 "isOptional" : false
1124 "name" : "adjWidth",
1126 "desc" : "The box-adjusted width that was set",
1127 "isOptional" : false
1130 "name" : "adjHeight",
1132 "desc" : "The box-adjusted height that was set",
1133 "isOptional" : false
1136 "name" : "rawWidth",
1138 "desc" : "The width that was originally specified",
1139 "isOptional" : false
1142 "name" : "rawHeight",
1144 "desc" : "The height that was originally specified",
1145 "isOptional" : false
1151 "name" : "beforerender",
1152 "type" : "function",
1153 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1154 "sig" : "function (_self)\n{\n\n}",
1155 "memberOf" : "Roo.Component",
1163 "type" : "Roo.Component",
1165 "isOptional" : false
1172 "type" : "function",
1173 "desc" : "Fires after the component is disabled.",
1174 "sig" : "function (_self)\n{\n\n}",
1175 "memberOf" : "Roo.Component",
1183 "type" : "Roo.Component",
1185 "isOptional" : false
1192 "type" : "function",
1193 "desc" : "Fires after the component is rendered.",
1194 "sig" : "function (_self)\n{\n\n}",
1195 "memberOf" : "Roo.Component",
1203 "type" : "Roo.Component",
1205 "isOptional" : false
1212 "type" : "function",
1213 "desc" : "Fires after the component is destroyed.",
1214 "sig" : "function (_self)\n{\n\n}",
1215 "memberOf" : "Roo.Component",
1223 "type" : "Roo.Component",
1225 "isOptional" : false
1232 "type" : "function",
1233 "desc" : "Fires after the component is hidden.",
1234 "sig" : "function (_self)\n{\n\n}",
1235 "memberOf" : "Roo.Component",
1243 "type" : "Roo.Component",
1245 "isOptional" : false
1251 "name" : "beforehide",
1252 "type" : "function",
1253 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1254 "sig" : "function (_self)\n{\n\n}",
1255 "memberOf" : "Roo.Component",
1263 "type" : "Roo.Component",
1265 "isOptional" : false
1272 "type" : "function",
1273 "desc" : "Fires after the component is shown.",
1274 "sig" : "function (_self)\n{\n\n}",
1275 "memberOf" : "Roo.Component",
1283 "type" : "Roo.Component",
1285 "isOptional" : false
1291 "name" : "beforeshow",
1292 "type" : "function",
1293 "desc" : "Fires before the component is shown. Return false to stop the show.",
1294 "sig" : "function (_self)\n{\n\n}",
1295 "memberOf" : "Roo.Component",
1303 "type" : "Roo.Component",
1305 "isOptional" : false
1312 "type" : "function",
1313 "desc" : "Fires after the component is enabled.",
1314 "sig" : "function (_self)\n{\n\n}",
1315 "memberOf" : "Roo.Component",
1323 "type" : "Roo.Component",
1325 "isOptional" : false
1331 "name" : "beforedestroy",
1332 "type" : "function",
1333 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1334 "sig" : "function (_self)\n{\n\n}",
1335 "memberOf" : "Roo.Component",
1343 "type" : "Roo.Component",
1345 "isOptional" : false