2 "name" : "Roo.form.TextItem",
9 "desc" : "Base class for form fields that provides default event handling, sizing, value handling and other functionality.",
10 "isSingleton" : false,
13 "memberOf" : "TextItem",
22 "desc" : "Configuration options",
33 "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>",
34 "memberOf" : "Roo.util.Observable"
39 "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\".",
40 "memberOf" : "Roo.Component"
45 "desc" : "the tag for this item (default div)",
49 "name" : "allowDomMove",
51 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
52 "memberOf" : "Roo.Component"
57 "desc" : "the content for this item",
61 "name" : "actionMode",
63 "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",
64 "memberOf" : "Roo.Component"
69 "desc" : "width (optional) size of component",
70 "memberOf" : "Roo.BoxComponent"
75 "desc" : "height (optional) size of component",
76 "memberOf" : "Roo.BoxComponent"
79 "name" : "disableClass",
81 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
82 "memberOf" : "Roo.Component"
89 "desc" : "Sets the current box measurements of the component's underlying element.",
92 "memberOf" : "Roo.BoxComponent",
94 "isConstructor" : false,
106 "desc" : "An object in the format {x, y, width, height}",
113 "name" : "setPagePosition",
115 "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.",
118 "memberOf" : "Roo.BoxComponent",
120 "isConstructor" : false,
132 "desc" : "The new x position",
138 "desc" : "The new y position",
147 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
148 "sig" : "()\n{\n\n}",
150 "memberOf" : "Roo.BoxComponent",
152 "isConstructor" : false,
166 "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}.",
167 "sig" : "(width, height)",
169 "memberOf" : "Roo.BoxComponent",
171 "isConstructor" : false,
182 "type" : "Number/Object",
183 "desc" : "The new width to set, or a size object in the format {width, height}",
189 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
196 "type" : "Roo.BoxComponent",
202 "name" : "getPosition",
204 "desc" : "Gets the current XY position of the component's underlying element.",
207 "memberOf" : "Roo.BoxComponent",
209 "isConstructor" : false,
221 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
229 "desc" : "The XY position of the element (e.g., [100, 200])"
236 "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.",
237 "sig" : "(adjWidth, adjHeight, rawWidth, rawHeight)",
239 "memberOf" : "Roo.BoxComponent",
241 "isConstructor" : false,
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.",
283 "memberOf" : "Roo.BoxComponent",
285 "isConstructor" : false,
297 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
306 "desc" : "Gets the current size of the component's underlying element.",
307 "sig" : "()\n{\n\n}",
309 "memberOf" : "Roo.BoxComponent",
311 "isConstructor" : false,
324 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
329 "name" : "onPosition",
331 "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.",
334 "memberOf" : "Roo.BoxComponent",
336 "isConstructor" : false,
348 "desc" : "The new x position",
354 "desc" : "The new y position",
361 "name" : "setPosition",
363 "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.",
364 "sig" : "(left, top)",
366 "memberOf" : "Roo.BoxComponent",
368 "isConstructor" : false,
380 "desc" : "The new left",
386 "desc" : "The new top",
395 "desc" : "Returns the id of this component.",
396 "sig" : "()\n{\n\n}",
398 "memberOf" : "Roo.Component",
400 "isConstructor" : false,
420 "desc" : "If this is a lazy rendering component, render it to its container element.",
421 "sig" : "(container)",
423 "memberOf" : "Roo.Component",
425 "isConstructor" : false,
435 "name" : "container",
436 "type" : "String/HTMLElement/Element",
437 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
446 "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}.",
447 "sig" : "()\n{\n\n}",
449 "memberOf" : "Roo.Component",
451 "isConstructor" : false,
463 "name" : "isVisible",
465 "desc" : "Returns true if this component is visible.",
466 "sig" : "()\n{\n\n}",
468 "memberOf" : "Roo.Component",
470 "isConstructor" : false,
482 "name" : "setDisabled",
484 "desc" : "Convenience function for setting disabled/enabled by boolean.",
485 "sig" : "(disabled)",
487 "memberOf" : "Roo.Component",
489 "isConstructor" : false,
510 "desc" : "Hide this component.",
511 "sig" : "()\n{\n\n}",
513 "memberOf" : "Roo.Component",
515 "isConstructor" : false,
527 "type" : "Roo.Component",
535 "desc" : "Try to focus this component.",
536 "sig" : "(selectText)",
538 "memberOf" : "Roo.Component",
540 "isConstructor" : false,
550 "name" : "selectText",
552 "desc" : "True to also select the text in this component (if applicable)",
559 "type" : "Roo.Component",
567 "desc" : "Show this component.",
568 "sig" : "()\n{\n\n}",
570 "memberOf" : "Roo.Component",
572 "isConstructor" : false,
584 "type" : "Roo.Component",
592 "desc" : "Enable this component.",
593 "sig" : "()\n{\n\n}",
595 "memberOf" : "Roo.Component",
597 "isConstructor" : false,
609 "type" : "Roo.Component",
615 "name" : "setVisible",
617 "desc" : "Convenience function to hide or show this component by boolean.",
620 "memberOf" : "Roo.Component",
622 "isConstructor" : false,
634 "desc" : "True to show, false to hide",
641 "type" : "Roo.Component",
649 "desc" : "Disable this component.",
650 "sig" : "()\n{\n\n}",
652 "memberOf" : "Roo.Component",
654 "isConstructor" : false,
666 "type" : "Roo.Component",
674 "desc" : "Returns the underlying {@link Roo.Element}.",
675 "sig" : "()\n{\n\n}",
677 "memberOf" : "Roo.Component",
679 "isConstructor" : false,
691 "type" : "Roo.Element",
692 "desc" : "The element"
697 "name" : "purgeListeners",
699 "desc" : "Removes all listeners for this object",
700 "sig" : "()\n{\n\n}",
702 "memberOf" : "Roo.util.Observable",
704 "isConstructor" : false,
718 "desc" : "Appends an event handler to this element (shorthand for addListener)",
719 "sig" : "(eventName, handler, scope, options)",
721 "memberOf" : "Roo.util.Observable",
723 "isConstructor" : false,
733 "name" : "eventName",
735 "desc" : "The type of event to listen for",
741 "desc" : "The method the event invokes",
747 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
753 "desc" : "(optional)",
762 "desc" : "Removes a listener (shorthand for removeListener)",
763 "sig" : "(eventName, handler, scope)",
765 "memberOf" : "Roo.util.Observable",
767 "isConstructor" : false,
777 "name" : "eventName",
779 "desc" : "The type of event to listen for",
785 "desc" : "The handler to remove",
791 "desc" : "(optional) The scope (this object) for the handler",
798 "name" : "addEvents",
800 "desc" : "Used to define events on this Observable",
803 "memberOf" : "Roo.util.Observable",
805 "isConstructor" : false,
817 "desc" : "The object with the events defined",
824 "name" : "releaseCapture",
826 "desc" : "Removes <b>all</b> added captures from the Observable.",
829 "memberOf" : "Roo.util.Observable",
831 "isConstructor" : false,
842 "type" : "Observable",
843 "desc" : "The Observable to release",
850 "name" : "removeListener",
852 "desc" : "Removes a listener",
853 "sig" : "(eventName, handler, scope)",
855 "memberOf" : "Roo.util.Observable",
857 "isConstructor" : false,
867 "name" : "eventName",
869 "desc" : "The type of event to listen for",
875 "desc" : "The handler to remove",
881 "desc" : "(optional) The scope (this object) for the handler",
888 "name" : "fireEvent",
890 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
891 "sig" : "(eventName, args)",
893 "memberOf" : "Roo.util.Observable",
895 "isConstructor" : false,
905 "name" : "eventName",
912 "type" : "Object...",
913 "desc" : "Variable number of parameters are passed to handlers",
921 "desc" : "returns false if any of the handlers return false otherwise it returns true"
926 "name" : "hasListener",
928 "desc" : "Checks to see if this object has any listeners for a specified event",
929 "sig" : "(eventName)",
931 "memberOf" : "Roo.util.Observable",
933 "isConstructor" : false,
943 "name" : "eventName",
945 "desc" : "The name of the event to check for",
953 "desc" : "True if the event is being listened for, else false"
960 "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.",
961 "sig" : "(o, fn, scope)",
963 "memberOf" : "Roo.util.Observable",
965 "isConstructor" : false,
976 "type" : "Observable",
977 "desc" : "The Observable to capture",
983 "desc" : "The function to call",
989 "desc" : "(optional) The scope (this object) for the fn",
996 "name" : "addListener",
998 "desc" : "Appends an event handler to this component",
999 "sig" : "(eventName, handler, scope, options)",
1001 "memberOf" : "Roo.util.Observable",
1003 "isConstructor" : false,
1004 "isPrivate" : false,
1013 "name" : "eventName",
1015 "desc" : "The type of event to listen for",
1016 "isOptional" : false
1020 "type" : "Function",
1021 "desc" : "The method the event invokes",
1022 "isOptional" : false
1027 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1028 "isOptional" : false
1033 "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>",
1034 "isOptional" : false
1043 "type" : "function",
1044 "desc" : "Fires after the component is moved.",
1045 "sig" : "function (_self, x, y)\n{\n\n}",
1046 "memberOf" : "Roo.BoxComponent",
1054 "type" : "Roo.Component",
1056 "isOptional" : false
1061 "desc" : "The new x position",
1062 "isOptional" : false
1067 "desc" : "The new y position",
1068 "isOptional" : false
1075 "type" : "function",
1076 "desc" : "Fires after the component is resized.",
1077 "sig" : "function (_self, adjWidth, adjHeight, rawWidth, rawHeight)\n{\n\n}",
1078 "memberOf" : "Roo.BoxComponent",
1086 "type" : "Roo.Component",
1088 "isOptional" : false
1091 "name" : "adjWidth",
1093 "desc" : "The box-adjusted width that was set",
1094 "isOptional" : false
1097 "name" : "adjHeight",
1099 "desc" : "The box-adjusted height that was set",
1100 "isOptional" : false
1103 "name" : "rawWidth",
1105 "desc" : "The width that was originally specified",
1106 "isOptional" : false
1109 "name" : "rawHeight",
1111 "desc" : "The height that was originally specified",
1112 "isOptional" : false
1118 "name" : "beforerender",
1119 "type" : "function",
1120 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1121 "sig" : "function (_self)\n{\n\n}",
1122 "memberOf" : "Roo.Component",
1130 "type" : "Roo.Component",
1132 "isOptional" : false
1139 "type" : "function",
1140 "desc" : "Fires after the component is disabled.",
1141 "sig" : "function (_self)\n{\n\n}",
1142 "memberOf" : "Roo.Component",
1150 "type" : "Roo.Component",
1152 "isOptional" : false
1159 "type" : "function",
1160 "desc" : "Fires after the component is rendered.",
1161 "sig" : "function (_self)\n{\n\n}",
1162 "memberOf" : "Roo.Component",
1170 "type" : "Roo.Component",
1172 "isOptional" : false
1179 "type" : "function",
1180 "desc" : "Fires after the component is destroyed.",
1181 "sig" : "function (_self)\n{\n\n}",
1182 "memberOf" : "Roo.Component",
1190 "type" : "Roo.Component",
1192 "isOptional" : false
1199 "type" : "function",
1200 "desc" : "Fires after the component is hidden.",
1201 "sig" : "function (_self)\n{\n\n}",
1202 "memberOf" : "Roo.Component",
1210 "type" : "Roo.Component",
1212 "isOptional" : false
1218 "name" : "beforehide",
1219 "type" : "function",
1220 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1221 "sig" : "function (_self)\n{\n\n}",
1222 "memberOf" : "Roo.Component",
1230 "type" : "Roo.Component",
1232 "isOptional" : false
1239 "type" : "function",
1240 "desc" : "Fires after the component is shown.",
1241 "sig" : "function (_self)\n{\n\n}",
1242 "memberOf" : "Roo.Component",
1250 "type" : "Roo.Component",
1252 "isOptional" : false
1258 "name" : "beforeshow",
1259 "type" : "function",
1260 "desc" : "Fires before the component is shown. Return false to stop the show.",
1261 "sig" : "function (_self)\n{\n\n}",
1262 "memberOf" : "Roo.Component",
1270 "type" : "Roo.Component",
1272 "isOptional" : false
1279 "type" : "function",
1280 "desc" : "Fires after the component is enabled.",
1281 "sig" : "function (_self)\n{\n\n}",
1282 "memberOf" : "Roo.Component",
1290 "type" : "Roo.Component",
1292 "isOptional" : false
1298 "name" : "beforedestroy",
1299 "type" : "function",
1300 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1301 "sig" : "function (_self)\n{\n\n}",
1302 "memberOf" : "Roo.Component",
1310 "type" : "Roo.Component",
1312 "isOptional" : false