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"
43 "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\".",
44 "memberOf" : "Roo.Component"
49 "desc" : "the tag for this item (default div)",
53 "name" : "allowDomMove",
55 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
56 "memberOf" : "Roo.Component"
61 "desc" : "the content for this item",
65 "name" : "actionMode",
67 "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",
68 "memberOf" : "Roo.Component"
73 "desc" : "width (optional) size of component",
74 "memberOf" : "Roo.BoxComponent"
79 "desc" : "height (optional) size of component",
80 "memberOf" : "Roo.BoxComponent"
83 "name" : "disableClass",
85 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
86 "memberOf" : "Roo.Component"
93 "desc" : "Sets the current box measurements of the component's underlying element.",
96 "memberOf" : "Roo.BoxComponent",
98 "isConstructor" : false,
110 "desc" : "An object in the format {x, y, width, height}",
117 "name" : "setPagePosition",
119 "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.",
122 "memberOf" : "Roo.BoxComponent",
124 "isConstructor" : false,
136 "desc" : "The new x position",
142 "desc" : "The new y position",
151 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
152 "sig" : "()\n{\n\n}",
154 "memberOf" : "Roo.BoxComponent",
156 "isConstructor" : false,
170 "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}.",
171 "sig" : "(width, height)",
173 "memberOf" : "Roo.BoxComponent",
175 "isConstructor" : false,
186 "type" : "Number/Object",
187 "desc" : "The new width to set, or a size object in the format {width, height}",
193 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
200 "type" : "Roo.BoxComponent",
206 "name" : "getPosition",
208 "desc" : "Gets the current XY position of the component's underlying element.",
211 "memberOf" : "Roo.BoxComponent",
213 "isConstructor" : false,
225 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
233 "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.",
241 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
243 "memberOf" : "Roo.BoxComponent",
245 "isConstructor" : false,
257 "desc" : "The box-adjusted width that was set",
261 "name" : "adjHeight",
263 "desc" : "The box-adjusted height that was set",
269 "desc" : "The width that was originally specified",
273 "name" : "rawHeight",
275 "desc" : "The height that was originally specified",
284 "desc" : "Gets the current box measurements of the component's underlying element.",
287 "memberOf" : "Roo.BoxComponent",
289 "isConstructor" : false,
301 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
310 "desc" : "Gets the current size of the component's underlying element.",
311 "sig" : "()\n{\n\n}",
313 "memberOf" : "Roo.BoxComponent",
315 "isConstructor" : false,
328 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
333 "name" : "onPosition",
335 "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.",
338 "memberOf" : "Roo.BoxComponent",
340 "isConstructor" : false,
352 "desc" : "The new x position",
358 "desc" : "The new y position",
365 "name" : "setPosition",
367 "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.",
368 "sig" : "(left, top)",
370 "memberOf" : "Roo.BoxComponent",
372 "isConstructor" : false,
384 "desc" : "The new left",
390 "desc" : "The new top",
399 "desc" : "Returns the id of this component.",
400 "sig" : "()\n{\n\n}",
402 "memberOf" : "Roo.Component",
404 "isConstructor" : false,
424 "desc" : "If this is a lazy rendering component, render it to its container element.",
425 "sig" : "(container)",
427 "memberOf" : "Roo.Component",
429 "isConstructor" : false,
439 "name" : "container",
440 "type" : "String/HTMLElement/Element",
441 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
450 "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}.",
451 "sig" : "()\n{\n\n}",
453 "memberOf" : "Roo.Component",
455 "isConstructor" : false,
467 "name" : "isVisible",
469 "desc" : "Returns true if this component is visible.",
470 "sig" : "()\n{\n\n}",
472 "memberOf" : "Roo.Component",
474 "isConstructor" : false,
486 "name" : "setDisabled",
488 "desc" : "Convenience function for setting disabled/enabled by boolean.",
489 "sig" : "(disabled)",
491 "memberOf" : "Roo.Component",
493 "isConstructor" : false,
514 "desc" : "Hide this component.",
515 "sig" : "()\n{\n\n}",
517 "memberOf" : "Roo.Component",
519 "isConstructor" : false,
531 "type" : "Roo.Component",
539 "desc" : "Try to focus this component.",
540 "sig" : "(selectText)",
542 "memberOf" : "Roo.Component",
544 "isConstructor" : false,
554 "name" : "selectText",
556 "desc" : "True to also select the text in this component (if applicable)",
563 "type" : "Roo.Component",
571 "desc" : "Show this component.",
572 "sig" : "()\n{\n\n}",
574 "memberOf" : "Roo.Component",
576 "isConstructor" : false,
588 "type" : "Roo.Component",
596 "desc" : "Enable this component.",
597 "sig" : "()\n{\n\n}",
599 "memberOf" : "Roo.Component",
601 "isConstructor" : false,
613 "type" : "Roo.Component",
619 "name" : "setVisible",
621 "desc" : "Convenience function to hide or show this component by boolean.",
624 "memberOf" : "Roo.Component",
626 "isConstructor" : false,
638 "desc" : "True to show, false to hide",
645 "type" : "Roo.Component",
653 "desc" : "Disable this component.",
654 "sig" : "()\n{\n\n}",
656 "memberOf" : "Roo.Component",
658 "isConstructor" : false,
670 "type" : "Roo.Component",
678 "desc" : "Returns the underlying {@link Roo.Element}.",
679 "sig" : "()\n{\n\n}",
681 "memberOf" : "Roo.Component",
683 "isConstructor" : false,
695 "type" : "Roo.Element",
696 "desc" : "The element"
701 "name" : "purgeListeners",
703 "desc" : "Removes all listeners for this object",
704 "sig" : "()\n{\n\n}",
706 "memberOf" : "Roo.util.Observable",
708 "isConstructor" : false,
722 "desc" : "Appends an event handler to this element (shorthand for addListener)",
723 "sig" : "(eventName, handler, scope, options)",
725 "memberOf" : "Roo.util.Observable",
727 "isConstructor" : false,
737 "name" : "eventName",
739 "desc" : "The type of event to listen for",
745 "desc" : "The method the event invokes",
751 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
757 "desc" : "(optional)",
766 "desc" : "Removes a listener (shorthand for removeListener)",
767 "sig" : "(eventName, handler, scope)",
769 "memberOf" : "Roo.util.Observable",
771 "isConstructor" : false,
781 "name" : "eventName",
783 "desc" : "The type of event to listen for",
789 "desc" : "The handler to remove",
795 "desc" : "(optional) The scope (this object) for the handler",
802 "name" : "addEvents",
804 "desc" : "Used to define events on this Observable",
807 "memberOf" : "Roo.util.Observable",
809 "isConstructor" : false,
821 "desc" : "The object with the events defined",
828 "name" : "releaseCapture",
830 "desc" : "Removes <b>all</b> added captures from the Observable.",
833 "memberOf" : "Roo.util.Observable",
835 "isConstructor" : false,
846 "type" : "Observable",
847 "desc" : "The Observable to release",
854 "name" : "removeListener",
856 "desc" : "Removes a listener",
857 "sig" : "(eventName, handler, scope)",
859 "memberOf" : "Roo.util.Observable",
861 "isConstructor" : false,
871 "name" : "eventName",
873 "desc" : "The type of event to listen for",
879 "desc" : "The handler to remove",
885 "desc" : "(optional) The scope (this object) for the handler",
892 "name" : "fireEvent",
894 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
895 "sig" : "(eventName, args)",
897 "memberOf" : "Roo.util.Observable",
899 "isConstructor" : false,
909 "name" : "eventName",
916 "type" : "Object...",
917 "desc" : "Variable number of parameters are passed to handlers",
925 "desc" : "returns false if any of the handlers return false otherwise it returns true"
930 "name" : "hasListener",
932 "desc" : "Checks to see if this object has any listeners for a specified event",
933 "sig" : "(eventName)",
935 "memberOf" : "Roo.util.Observable",
937 "isConstructor" : false,
947 "name" : "eventName",
949 "desc" : "The name of the event to check for",
957 "desc" : "True if the event is being listened for, else false"
964 "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.",
965 "sig" : "(o, fn, scope)",
967 "memberOf" : "Roo.util.Observable",
969 "isConstructor" : false,
980 "type" : "Observable",
981 "desc" : "The Observable to capture",
987 "desc" : "The function to call",
993 "desc" : "(optional) The scope (this object) for the fn",
1000 "name" : "addListener",
1001 "type" : "function",
1002 "desc" : "Appends an event handler to this component",
1003 "sig" : "(eventName, handler, scope, options)",
1005 "memberOf" : "Roo.util.Observable",
1007 "isConstructor" : false,
1008 "isPrivate" : false,
1017 "name" : "eventName",
1019 "desc" : "The type of event to listen for",
1020 "isOptional" : false
1024 "type" : "Function",
1025 "desc" : "The method the event invokes",
1026 "isOptional" : false
1031 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1032 "isOptional" : false
1037 "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>",
1038 "isOptional" : false
1047 "type" : "function",
1048 "desc" : "Fires after the component is moved.",
1049 "sig" : "function (_self, x, y)\n{\n\n}",
1050 "memberOf" : "Roo.BoxComponent",
1058 "type" : "Roo.Component",
1060 "isOptional" : false
1065 "desc" : "The new x position",
1066 "isOptional" : false
1071 "desc" : "The new y position",
1072 "isOptional" : false
1079 "type" : "function",
1080 "desc" : "Fires after the component is resized.",
1081 "sig" : "function (_self, adjWidth, adjHeight, rawWidth, rawHeight)\n{\n\n}",
1082 "memberOf" : "Roo.BoxComponent",
1090 "type" : "Roo.Component",
1092 "isOptional" : false
1095 "name" : "adjWidth",
1097 "desc" : "The box-adjusted width that was set",
1098 "isOptional" : false
1101 "name" : "adjHeight",
1103 "desc" : "The box-adjusted height that was set",
1104 "isOptional" : false
1107 "name" : "rawWidth",
1109 "desc" : "The width that was originally specified",
1110 "isOptional" : false
1113 "name" : "rawHeight",
1115 "desc" : "The height that was originally specified",
1116 "isOptional" : false
1122 "name" : "beforerender",
1123 "type" : "function",
1124 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1125 "sig" : "function (_self)\n{\n\n}",
1126 "memberOf" : "Roo.Component",
1134 "type" : "Roo.Component",
1136 "isOptional" : false
1143 "type" : "function",
1144 "desc" : "Fires after the component is disabled.",
1145 "sig" : "function (_self)\n{\n\n}",
1146 "memberOf" : "Roo.Component",
1154 "type" : "Roo.Component",
1156 "isOptional" : false
1163 "type" : "function",
1164 "desc" : "Fires after the component is rendered.",
1165 "sig" : "function (_self)\n{\n\n}",
1166 "memberOf" : "Roo.Component",
1174 "type" : "Roo.Component",
1176 "isOptional" : false
1183 "type" : "function",
1184 "desc" : "Fires after the component is destroyed.",
1185 "sig" : "function (_self)\n{\n\n}",
1186 "memberOf" : "Roo.Component",
1194 "type" : "Roo.Component",
1196 "isOptional" : false
1203 "type" : "function",
1204 "desc" : "Fires after the component is hidden.",
1205 "sig" : "function (_self)\n{\n\n}",
1206 "memberOf" : "Roo.Component",
1214 "type" : "Roo.Component",
1216 "isOptional" : false
1222 "name" : "beforehide",
1223 "type" : "function",
1224 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1225 "sig" : "function (_self)\n{\n\n}",
1226 "memberOf" : "Roo.Component",
1234 "type" : "Roo.Component",
1236 "isOptional" : false
1243 "type" : "function",
1244 "desc" : "Fires after the component is shown.",
1245 "sig" : "function (_self)\n{\n\n}",
1246 "memberOf" : "Roo.Component",
1254 "type" : "Roo.Component",
1256 "isOptional" : false
1262 "name" : "beforeshow",
1263 "type" : "function",
1264 "desc" : "Fires before the component is shown. Return false to stop the show.",
1265 "sig" : "function (_self)\n{\n\n}",
1266 "memberOf" : "Roo.Component",
1274 "type" : "Roo.Component",
1276 "isOptional" : false
1283 "type" : "function",
1284 "desc" : "Fires after the component is enabled.",
1285 "sig" : "function (_self)\n{\n\n}",
1286 "memberOf" : "Roo.Component",
1294 "type" : "Roo.Component",
1296 "isOptional" : false
1302 "name" : "beforedestroy",
1303 "type" : "function",
1304 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1305 "sig" : "function (_self)\n{\n\n}",
1306 "memberOf" : "Roo.Component",
1314 "type" : "Roo.Component",
1316 "isOptional" : false