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",
32 "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>",
33 "memberOf" : "Roo.util.Observable"
38 "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\".",
39 "memberOf" : "Roo.Component"
44 "desc" : "the tag for this item (default div)",
48 "name" : "allowDomMove",
50 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
51 "memberOf" : "Roo.Component"
56 "desc" : "the content for this item",
60 "name" : "actionMode",
62 "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",
63 "memberOf" : "Roo.Component"
68 "desc" : "width (optional) size of component",
69 "memberOf" : "Roo.BoxComponent"
74 "desc" : "height (optional) size of component",
75 "memberOf" : "Roo.BoxComponent"
78 "name" : "disableClass",
80 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
81 "memberOf" : "Roo.Component"
88 "desc" : "Sets the current box measurements of the component's underlying element.",
91 "memberOf" : "Roo.BoxComponent",
93 "isConstructor" : false,
105 "desc" : "An object in the format {x, y, width, height}",
112 "name" : "setPagePosition",
114 "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.",
117 "memberOf" : "Roo.BoxComponent",
119 "isConstructor" : false,
131 "desc" : "The new x position",
137 "desc" : "The new y position",
146 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
147 "sig" : "()\n{\n\n}",
149 "memberOf" : "Roo.BoxComponent",
151 "isConstructor" : false,
165 "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}.",
166 "sig" : "(width, height)",
168 "memberOf" : "Roo.BoxComponent",
170 "isConstructor" : false,
181 "type" : "Number/Object",
182 "desc" : "The new width to set, or a size object in the format {width, height}",
188 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
195 "type" : "Roo.BoxComponent",
201 "name" : "getPosition",
203 "desc" : "Gets the current XY position of the component's underlying element.",
206 "memberOf" : "Roo.BoxComponent",
208 "isConstructor" : false,
220 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
228 "desc" : "The XY position of the element (e.g., [100, 200])"
235 "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.",
236 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
238 "memberOf" : "Roo.BoxComponent",
240 "isConstructor" : false,
252 "desc" : "The box-adjusted width that was set",
256 "name" : "adjHeight",
258 "desc" : "The box-adjusted height that was set",
264 "desc" : "The width that was originally specified",
268 "name" : "rawHeight",
270 "desc" : "The height that was originally specified",
279 "desc" : "Gets the current box measurements of the component's underlying element.",
282 "memberOf" : "Roo.BoxComponent",
284 "isConstructor" : false,
296 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
305 "desc" : "Gets the current size of the component's underlying element.",
306 "sig" : "()\n{\n\n}",
308 "memberOf" : "Roo.BoxComponent",
310 "isConstructor" : false,
323 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
328 "name" : "onPosition",
330 "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.",
333 "memberOf" : "Roo.BoxComponent",
335 "isConstructor" : false,
347 "desc" : "The new x position",
353 "desc" : "The new y position",
360 "name" : "setPosition",
362 "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.",
363 "sig" : "(left, top)",
365 "memberOf" : "Roo.BoxComponent",
367 "isConstructor" : false,
379 "desc" : "The new left",
385 "desc" : "The new top",
394 "desc" : "Returns the id of this component.",
395 "sig" : "()\n{\n\n}",
397 "memberOf" : "Roo.Component",
399 "isConstructor" : false,
419 "desc" : "If this is a lazy rendering component, render it to its container element.",
420 "sig" : "(container)",
422 "memberOf" : "Roo.Component",
424 "isConstructor" : false,
434 "name" : "container",
435 "type" : "String/HTMLElement/Element",
436 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
445 "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}.",
446 "sig" : "()\n{\n\n}",
448 "memberOf" : "Roo.Component",
450 "isConstructor" : false,
462 "name" : "isVisible",
464 "desc" : "Returns true if this component is visible.",
465 "sig" : "()\n{\n\n}",
467 "memberOf" : "Roo.Component",
469 "isConstructor" : false,
481 "name" : "setDisabled",
483 "desc" : "Convenience function for setting disabled/enabled by boolean.",
484 "sig" : "(disabled)",
486 "memberOf" : "Roo.Component",
488 "isConstructor" : false,
509 "desc" : "Hide this component.",
510 "sig" : "()\n{\n\n}",
512 "memberOf" : "Roo.Component",
514 "isConstructor" : false,
526 "type" : "Roo.Component",
534 "desc" : "Try to focus this component.",
535 "sig" : "(selectText)",
537 "memberOf" : "Roo.Component",
539 "isConstructor" : false,
549 "name" : "selectText",
551 "desc" : "True to also select the text in this component (if applicable)",
558 "type" : "Roo.Component",
566 "desc" : "Show this component.",
567 "sig" : "()\n{\n\n}",
569 "memberOf" : "Roo.Component",
571 "isConstructor" : false,
583 "type" : "Roo.Component",
591 "desc" : "Enable this component.",
592 "sig" : "()\n{\n\n}",
594 "memberOf" : "Roo.Component",
596 "isConstructor" : false,
608 "type" : "Roo.Component",
614 "name" : "setVisible",
616 "desc" : "Convenience function to hide or show this component by boolean.",
619 "memberOf" : "Roo.Component",
621 "isConstructor" : false,
633 "desc" : "True to show, false to hide",
640 "type" : "Roo.Component",
648 "desc" : "Disable this component.",
649 "sig" : "()\n{\n\n}",
651 "memberOf" : "Roo.Component",
653 "isConstructor" : false,
665 "type" : "Roo.Component",
673 "desc" : "Returns the underlying {@link Roo.Element}.",
674 "sig" : "()\n{\n\n}",
676 "memberOf" : "Roo.Component",
678 "isConstructor" : false,
690 "type" : "Roo.Element",
691 "desc" : "The element"
696 "name" : "purgeListeners",
698 "desc" : "Removes all listeners for this object",
699 "sig" : "()\n{\n\n}",
701 "memberOf" : "Roo.util.Observable",
703 "isConstructor" : false,
717 "desc" : "Appends an event handler to this element (shorthand for addListener)",
718 "sig" : "(eventName, handler, scope, options)",
720 "memberOf" : "Roo.util.Observable",
722 "isConstructor" : false,
732 "name" : "eventName",
734 "desc" : "The type of event to listen for",
740 "desc" : "The method the event invokes",
746 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
752 "desc" : "(optional)",
761 "desc" : "Removes a listener (shorthand for removeListener)",
762 "sig" : "(eventName, handler, scope)",
764 "memberOf" : "Roo.util.Observable",
766 "isConstructor" : false,
776 "name" : "eventName",
778 "desc" : "The type of event to listen for",
784 "desc" : "The handler to remove",
790 "desc" : "(optional) The scope (this object) for the handler",
797 "name" : "addEvents",
799 "desc" : "Used to define events on this Observable",
802 "memberOf" : "Roo.util.Observable",
804 "isConstructor" : false,
816 "desc" : "The object with the events defined",
823 "name" : "releaseCapture",
825 "desc" : "Removes <b>all</b> added captures from the Observable.",
828 "memberOf" : "Roo.util.Observable",
830 "isConstructor" : false,
841 "type" : "Observable",
842 "desc" : "The Observable to release",
849 "name" : "removeListener",
851 "desc" : "Removes a listener",
852 "sig" : "(eventName, handler, scope)",
854 "memberOf" : "Roo.util.Observable",
856 "isConstructor" : false,
866 "name" : "eventName",
868 "desc" : "The type of event to listen for",
874 "desc" : "The handler to remove",
880 "desc" : "(optional) The scope (this object) for the handler",
887 "name" : "fireEvent",
889 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
890 "sig" : "(eventName, args)",
892 "memberOf" : "Roo.util.Observable",
894 "isConstructor" : false,
904 "name" : "eventName",
911 "type" : "Object...",
912 "desc" : "Variable number of parameters are passed to handlers",
920 "desc" : "returns false if any of the handlers return false otherwise it returns true"
925 "name" : "hasListener",
927 "desc" : "Checks to see if this object has any listeners for a specified event",
928 "sig" : "(eventName)",
930 "memberOf" : "Roo.util.Observable",
932 "isConstructor" : false,
942 "name" : "eventName",
944 "desc" : "The name of the event to check for",
952 "desc" : "True if the event is being listened for, else false"
959 "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.",
960 "sig" : "(o, fn, scope)",
962 "memberOf" : "Roo.util.Observable",
964 "isConstructor" : false,
975 "type" : "Observable",
976 "desc" : "The Observable to capture",
982 "desc" : "The function to call",
988 "desc" : "(optional) The scope (this object) for the fn",
995 "name" : "addListener",
997 "desc" : "Appends an event handler to this component",
998 "sig" : "(eventName, handler, scope, options)",
1000 "memberOf" : "Roo.util.Observable",
1002 "isConstructor" : false,
1003 "isPrivate" : false,
1012 "name" : "eventName",
1014 "desc" : "The type of event to listen for",
1015 "isOptional" : false
1019 "type" : "Function",
1020 "desc" : "The method the event invokes",
1021 "isOptional" : false
1026 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1027 "isOptional" : false
1032 "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>",
1033 "isOptional" : false
1042 "type" : "function",
1043 "desc" : "Fires after the component is moved.",
1044 "sig" : "function (_self, x, y)\n{\n\n}",
1045 "memberOf" : "Roo.BoxComponent",
1053 "type" : "Roo.Component",
1055 "isOptional" : false
1060 "desc" : "The new x position",
1061 "isOptional" : false
1066 "desc" : "The new y position",
1067 "isOptional" : false
1074 "type" : "function",
1075 "desc" : "Fires after the component is resized.",
1076 "sig" : "function (_self, adjWidth, adjHeight, rawWidth, rawHeight)\n{\n\n}",
1077 "memberOf" : "Roo.BoxComponent",
1085 "type" : "Roo.Component",
1087 "isOptional" : false
1090 "name" : "adjWidth",
1092 "desc" : "The box-adjusted width that was set",
1093 "isOptional" : false
1096 "name" : "adjHeight",
1098 "desc" : "The box-adjusted height that was set",
1099 "isOptional" : false
1102 "name" : "rawWidth",
1104 "desc" : "The width that was originally specified",
1105 "isOptional" : false
1108 "name" : "rawHeight",
1110 "desc" : "The height that was originally specified",
1111 "isOptional" : false
1117 "name" : "beforerender",
1118 "type" : "function",
1119 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1120 "sig" : "function (_self)\n{\n\n}",
1121 "memberOf" : "Roo.Component",
1129 "type" : "Roo.Component",
1131 "isOptional" : false
1138 "type" : "function",
1139 "desc" : "Fires after the component is disabled.",
1140 "sig" : "function (_self)\n{\n\n}",
1141 "memberOf" : "Roo.Component",
1149 "type" : "Roo.Component",
1151 "isOptional" : false
1158 "type" : "function",
1159 "desc" : "Fires after the component is rendered.",
1160 "sig" : "function (_self)\n{\n\n}",
1161 "memberOf" : "Roo.Component",
1169 "type" : "Roo.Component",
1171 "isOptional" : false
1178 "type" : "function",
1179 "desc" : "Fires after the component is destroyed.",
1180 "sig" : "function (_self)\n{\n\n}",
1181 "memberOf" : "Roo.Component",
1189 "type" : "Roo.Component",
1191 "isOptional" : false
1198 "type" : "function",
1199 "desc" : "Fires after the component is hidden.",
1200 "sig" : "function (_self)\n{\n\n}",
1201 "memberOf" : "Roo.Component",
1209 "type" : "Roo.Component",
1211 "isOptional" : false
1217 "name" : "beforehide",
1218 "type" : "function",
1219 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1220 "sig" : "function (_self)\n{\n\n}",
1221 "memberOf" : "Roo.Component",
1229 "type" : "Roo.Component",
1231 "isOptional" : false
1238 "type" : "function",
1239 "desc" : "Fires after the component is shown.",
1240 "sig" : "function (_self)\n{\n\n}",
1241 "memberOf" : "Roo.Component",
1249 "type" : "Roo.Component",
1251 "isOptional" : false
1257 "name" : "beforeshow",
1258 "type" : "function",
1259 "desc" : "Fires before the component is shown. Return false to stop the show.",
1260 "sig" : "function (_self)\n{\n\n}",
1261 "memberOf" : "Roo.Component",
1269 "type" : "Roo.Component",
1271 "isOptional" : false
1278 "type" : "function",
1279 "desc" : "Fires after the component is enabled.",
1280 "sig" : "function (_self)\n{\n\n}",
1281 "memberOf" : "Roo.Component",
1289 "type" : "Roo.Component",
1291 "isOptional" : false
1297 "name" : "beforedestroy",
1298 "type" : "function",
1299 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1300 "sig" : "function (_self)\n{\n\n}",
1301 "memberOf" : "Roo.Component",
1309 "type" : "Roo.Component",
1311 "isOptional" : false