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",
31 "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>",
32 "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",
49 "desc" : "the tag for this item (default div)",
50 "memberOf" : "Roo.form.TextItem",
55 "name" : "allowDomMove",
57 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
58 "memberOf" : "Roo.Component",
65 "desc" : "the content for this item",
66 "memberOf" : "Roo.form.TextItem",
71 "name" : "actionMode",
73 "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",
74 "memberOf" : "Roo.Component",
81 "desc" : "width (optional) size of component",
82 "memberOf" : "Roo.BoxComponent",
89 "desc" : "height (optional) size of component",
90 "memberOf" : "Roo.BoxComponent",
95 "name" : "disableClass",
97 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
98 "memberOf" : "Roo.Component",
105 "name" : "updateBox",
106 "desc" : "Sets the current box measurements of the component's underlying element.",
108 "isConstructor" : false,
110 "memberOf" : "Roo.BoxComponent",
119 "desc" : "An object in the format {x, y, width, height}",
127 "name" : "setPagePosition",
128 "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.",
130 "isConstructor" : false,
132 "memberOf" : "Roo.BoxComponent",
141 "desc" : "The new x position",
147 "desc" : "The new y position",
156 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
158 "isConstructor" : false,
160 "memberOf" : "Roo.BoxComponent",
172 "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}.",
174 "isConstructor" : false,
176 "memberOf" : "Roo.BoxComponent",
184 "type" : "Number/Object",
185 "desc" : "The new width to set, or a size object in the format {width, height}",
191 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
198 "type" : "Roo.BoxComponent",
204 "name" : "getPosition",
205 "desc" : "Gets the current XY position of the component's underlying element.",
207 "isConstructor" : false,
209 "memberOf" : "Roo.BoxComponent",
218 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
226 "desc" : "The XY position of the element (e.g., [100, 200])"
232 "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.",
234 "isConstructor" : false,
236 "memberOf" : "Roo.BoxComponent",
245 "desc" : "The box-adjusted width that was set",
249 "name" : "adjHeight",
251 "desc" : "The box-adjusted height that was set",
257 "desc" : "The width that was originally specified",
261 "name" : "rawHeight",
263 "desc" : "The height that was originally specified",
272 "desc" : "Gets the current box measurements of the component's underlying element.",
274 "isConstructor" : false,
276 "memberOf" : "Roo.BoxComponent",
285 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
294 "desc" : "Gets the current size of the component's underlying element.",
296 "isConstructor" : false,
298 "memberOf" : "Roo.BoxComponent",
309 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
314 "name" : "onPosition",
315 "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.",
317 "isConstructor" : false,
319 "memberOf" : "Roo.BoxComponent",
328 "desc" : "The new x position",
334 "desc" : "The new y position",
342 "name" : "setPosition",
343 "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.",
345 "isConstructor" : false,
347 "memberOf" : "Roo.BoxComponent",
356 "desc" : "The new left",
362 "desc" : "The new top",
371 "desc" : "Returns the id of this component.",
373 "isConstructor" : false,
375 "memberOf" : "Roo.Component",
392 "desc" : "If this is a lazy rendering component, render it to its container element.",
394 "isConstructor" : false,
396 "memberOf" : "Roo.Component",
403 "name" : "container",
404 "type" : "String/HTMLElement/Element",
405 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
414 "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}.",
416 "isConstructor" : false,
418 "memberOf" : "Roo.Component",
429 "name" : "isVisible",
430 "desc" : "Returns true if this component is visible.",
432 "isConstructor" : false,
434 "memberOf" : "Roo.Component",
445 "name" : "setDisabled",
446 "desc" : "Convenience function for setting disabled/enabled by boolean.",
448 "isConstructor" : false,
450 "memberOf" : "Roo.Component",
468 "desc" : "Hide this component.",
470 "isConstructor" : false,
472 "memberOf" : "Roo.Component",
482 "type" : "Roo.Component",
489 "desc" : "Try to focus this component.",
491 "isConstructor" : false,
493 "memberOf" : "Roo.Component",
500 "name" : "selectText",
502 "desc" : "True to also select the text in this component (if applicable)",
509 "type" : "Roo.Component",
516 "desc" : "Show this component.",
518 "isConstructor" : false,
520 "memberOf" : "Roo.Component",
530 "type" : "Roo.Component",
537 "desc" : "Enable this component.",
539 "isConstructor" : false,
541 "memberOf" : "Roo.Component",
551 "type" : "Roo.Component",
557 "name" : "setVisible",
558 "desc" : "Convenience function to hide or show this component by boolean.",
560 "isConstructor" : false,
562 "memberOf" : "Roo.Component",
571 "desc" : "True to show, false to hide",
578 "type" : "Roo.Component",
585 "desc" : "Disable this component.",
587 "isConstructor" : false,
589 "memberOf" : "Roo.Component",
599 "type" : "Roo.Component",
606 "desc" : "Returns the underlying {@link Roo.Element}.",
608 "isConstructor" : false,
610 "memberOf" : "Roo.Component",
620 "type" : "Roo.Element",
621 "desc" : "The element"
626 "name" : "purgeListeners",
627 "desc" : "Removes all listeners for this object",
629 "isConstructor" : false,
631 "memberOf" : "Roo.util.Observable",
643 "desc" : "Appends an event handler to this element (shorthand for addListener)",
645 "isConstructor" : false,
647 "memberOf" : "Roo.util.Observable",
654 "name" : "eventName",
656 "desc" : "The type of event to listen for",
662 "desc" : "The method the event invokes",
668 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
674 "desc" : "(optional)",
683 "desc" : "Removes a listener (shorthand for removeListener)",
685 "isConstructor" : false,
687 "memberOf" : "Roo.util.Observable",
694 "name" : "eventName",
696 "desc" : "The type of event to listen for",
702 "desc" : "The handler to remove",
708 "desc" : "(optional) The scope (this object) for the handler",
716 "name" : "addEvents",
717 "desc" : "Used to define events on this Observable",
719 "isConstructor" : false,
721 "memberOf" : "Roo.util.Observable",
730 "desc" : "The object with the events defined",
738 "name" : "releaseCapture",
739 "desc" : "Removes <b>all</b> added captures from the Observable.",
741 "isConstructor" : false,
743 "memberOf" : "Roo.util.Observable",
751 "type" : "Observable",
752 "desc" : "The Observable to release",
760 "name" : "removeListener",
761 "desc" : "Removes a listener",
763 "isConstructor" : false,
765 "memberOf" : "Roo.util.Observable",
772 "name" : "eventName",
774 "desc" : "The type of event to listen for",
780 "desc" : "The handler to remove",
786 "desc" : "(optional) The scope (this object) for the handler",
794 "name" : "fireEvent",
795 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
797 "isConstructor" : false,
799 "memberOf" : "Roo.util.Observable",
806 "name" : "eventName",
813 "type" : "Object...",
814 "desc" : "Variable number of parameters are passed to handlers",
822 "desc" : "returns false if any of the handlers return false otherwise it returns true"
827 "name" : "hasListener",
828 "desc" : "Checks to see if this object has any listeners for a specified event",
830 "isConstructor" : false,
832 "memberOf" : "Roo.util.Observable",
839 "name" : "eventName",
841 "desc" : "The name of the event to check for",
849 "desc" : "True if the event is being listened for, else false"
855 "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.",
857 "isConstructor" : false,
859 "memberOf" : "Roo.util.Observable",
867 "type" : "Observable",
868 "desc" : "The Observable to capture",
874 "desc" : "The function to call",
880 "desc" : "(optional) The scope (this object) for the fn",
888 "name" : "addListener",
889 "desc" : "Appends an event handler to this component",
891 "isConstructor" : false,
893 "memberOf" : "Roo.util.Observable",
900 "name" : "eventName",
902 "desc" : "The type of event to listen for",
908 "desc" : "The method the event invokes",
914 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
920 "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>",
931 "desc" : "Fires after the component is moved.",
932 "memberOf" : "Roo.BoxComponent",
940 "type" : "Roo.Component",
947 "desc" : "The new x position",
953 "desc" : "The new y position",
962 "desc" : "Fires after the component is resized.",
963 "memberOf" : "Roo.BoxComponent",
971 "type" : "Roo.Component",
978 "desc" : "The box-adjusted width that was set",
982 "name" : "adjHeight",
984 "desc" : "The box-adjusted height that was set",
990 "desc" : "The width that was originally specified",
994 "name" : "rawHeight",
996 "desc" : "The height that was originally specified",
1004 "name" : "beforerender",
1005 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1006 "memberOf" : "Roo.Component",
1014 "type" : "Roo.Component",
1016 "isOptional" : false
1024 "desc" : "Fires after the component is disabled.",
1025 "memberOf" : "Roo.Component",
1033 "type" : "Roo.Component",
1035 "isOptional" : false
1043 "desc" : "Fires after the component is rendered.",
1044 "memberOf" : "Roo.Component",
1052 "type" : "Roo.Component",
1054 "isOptional" : false
1062 "desc" : "Fires after the component is destroyed.",
1063 "memberOf" : "Roo.Component",
1071 "type" : "Roo.Component",
1073 "isOptional" : false
1081 "desc" : "Fires after the component is hidden.",
1082 "memberOf" : "Roo.Component",
1090 "type" : "Roo.Component",
1092 "isOptional" : false
1099 "name" : "beforehide",
1100 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1101 "memberOf" : "Roo.Component",
1109 "type" : "Roo.Component",
1111 "isOptional" : false
1119 "desc" : "Fires after the component is shown.",
1120 "memberOf" : "Roo.Component",
1128 "type" : "Roo.Component",
1130 "isOptional" : false
1137 "name" : "beforeshow",
1138 "desc" : "Fires before the component is shown. Return false to stop the show.",
1139 "memberOf" : "Roo.Component",
1147 "type" : "Roo.Component",
1149 "isOptional" : false
1157 "desc" : "Fires after the component is enabled.",
1158 "memberOf" : "Roo.Component",
1166 "type" : "Roo.Component",
1168 "isOptional" : false
1175 "name" : "beforedestroy",
1176 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1177 "memberOf" : "Roo.Component",
1185 "type" : "Roo.Component",
1187 "isOptional" : false