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" : "How 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 class for this item",
66 "memberOf" : "Roo.form.TextItem",
73 "desc" : "the content for this item",
74 "memberOf" : "Roo.form.TextItem",
79 "name" : "autoCreate",
80 "type" : "String/Object",
81 "desc" : "A DomHelper element spec, or true for a default element spec (defaults to\n{tag: \"div\", type: \"text\", size: \"20\", autocomplete: \"off\"})",
82 "memberOf" : "Roo.form.TextItem",
87 "name" : "actionMode",
89 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
90 "memberOf" : "Roo.Component",
97 "desc" : "width (optional) size of component",
98 "memberOf" : "Roo.BoxComponent",
105 "desc" : "height (optional) size of component",
106 "memberOf" : "Roo.BoxComponent",
111 "name" : "disableClass",
113 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
114 "memberOf" : "Roo.Component",
121 "name" : "updateBox",
122 "desc" : "Sets the current box measurements of the component's underlying element.",
124 "isConstructor" : false,
126 "memberOf" : "Roo.BoxComponent",
135 "desc" : "An object in the format {x, y, width, height}",
143 "name" : "setPagePosition",
144 "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.",
146 "isConstructor" : false,
148 "memberOf" : "Roo.BoxComponent",
157 "desc" : "The new x position",
163 "desc" : "The new y position",
172 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
174 "isConstructor" : false,
176 "memberOf" : "Roo.BoxComponent",
188 "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}.",
190 "isConstructor" : false,
192 "memberOf" : "Roo.BoxComponent",
200 "type" : "Number/Object",
201 "desc" : "The new width to set, or a size object in the format {width, height}",
207 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
214 "type" : "Roo.BoxComponent",
220 "name" : "getPosition",
221 "desc" : "Gets the current XY position of the component's underlying element.",
223 "isConstructor" : false,
225 "memberOf" : "Roo.BoxComponent",
234 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
242 "desc" : "The XY position of the element (e.g., [100, 200])"
248 "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.",
250 "isConstructor" : false,
252 "memberOf" : "Roo.BoxComponent",
261 "desc" : "The box-adjusted width that was set",
265 "name" : "adjHeight",
267 "desc" : "The box-adjusted height that was set",
273 "desc" : "The width that was originally specified",
277 "name" : "rawHeight",
279 "desc" : "The height that was originally specified",
288 "desc" : "Gets the current box measurements of the component's underlying element.",
290 "isConstructor" : false,
292 "memberOf" : "Roo.BoxComponent",
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.",
312 "isConstructor" : false,
314 "memberOf" : "Roo.BoxComponent",
325 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
330 "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.",
333 "isConstructor" : false,
335 "memberOf" : "Roo.BoxComponent",
344 "desc" : "The new x position",
350 "desc" : "The new y position",
358 "name" : "setPosition",
359 "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.",
361 "isConstructor" : false,
363 "memberOf" : "Roo.BoxComponent",
372 "desc" : "The new left",
378 "desc" : "The new top",
387 "desc" : "Returns the id of this component.",
389 "isConstructor" : false,
391 "memberOf" : "Roo.Component",
408 "desc" : "If this is a lazy rendering component, render it to its container element.",
410 "isConstructor" : false,
412 "memberOf" : "Roo.Component",
419 "name" : "container",
420 "type" : "String/HTMLElement/Element",
421 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
430 "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}.",
432 "isConstructor" : false,
434 "memberOf" : "Roo.Component",
445 "name" : "isVisible",
446 "desc" : "Returns true if this component is visible.",
448 "isConstructor" : false,
450 "memberOf" : "Roo.Component",
461 "name" : "setDisabled",
462 "desc" : "Convenience function for setting disabled/enabled by boolean.",
464 "isConstructor" : false,
466 "memberOf" : "Roo.Component",
484 "desc" : "Hide this component.",
486 "isConstructor" : false,
488 "memberOf" : "Roo.Component",
498 "type" : "Roo.Component",
505 "desc" : "Try to focus this component.",
507 "isConstructor" : false,
509 "memberOf" : "Roo.Component",
516 "name" : "selectText",
518 "desc" : "True to also select the text in this component (if applicable)",
525 "type" : "Roo.Component",
532 "desc" : "Show this component.",
534 "isConstructor" : false,
536 "memberOf" : "Roo.Component",
546 "type" : "Roo.Component",
553 "desc" : "Enable this component.",
555 "isConstructor" : false,
557 "memberOf" : "Roo.Component",
567 "type" : "Roo.Component",
573 "name" : "setVisible",
574 "desc" : "Convenience function to hide or show this component by boolean.",
576 "isConstructor" : false,
578 "memberOf" : "Roo.Component",
587 "desc" : "True to show, false to hide",
594 "type" : "Roo.Component",
601 "desc" : "Disable this component.",
603 "isConstructor" : false,
605 "memberOf" : "Roo.Component",
615 "type" : "Roo.Component",
622 "desc" : "Returns the underlying {@link Roo.Element}.",
624 "isConstructor" : false,
626 "memberOf" : "Roo.Component",
636 "type" : "Roo.Element",
637 "desc" : "The element"
642 "name" : "purgeListeners",
643 "desc" : "Removes all listeners for this object",
645 "isConstructor" : false,
647 "memberOf" : "Roo.util.Observable",
659 "desc" : "Appends an event handler to this element (shorthand for addListener)",
661 "isConstructor" : false,
663 "memberOf" : "Roo.util.Observable",
670 "name" : "eventName",
672 "desc" : "The type of event to listen for",
678 "desc" : "The method the event invokes",
684 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
690 "desc" : "(optional)",
699 "desc" : "Removes a listener (shorthand for removeListener)",
701 "isConstructor" : false,
703 "memberOf" : "Roo.util.Observable",
710 "name" : "eventName",
712 "desc" : "The type of event to listen for",
718 "desc" : "The handler to remove",
724 "desc" : "(optional) The scope (this object) for the handler",
732 "name" : "addEvents",
733 "desc" : "Used to define events on this Observable",
735 "isConstructor" : false,
737 "memberOf" : "Roo.util.Observable",
746 "desc" : "The object with the events defined",
754 "name" : "releaseCapture",
755 "desc" : "Removes <b>all</b> added captures from the Observable.",
757 "isConstructor" : false,
759 "memberOf" : "Roo.util.Observable",
767 "type" : "Observable",
768 "desc" : "The Observable to release",
776 "name" : "removeListener",
777 "desc" : "Removes a listener",
779 "isConstructor" : false,
781 "memberOf" : "Roo.util.Observable",
788 "name" : "eventName",
790 "desc" : "The type of event to listen for",
796 "desc" : "The handler to remove",
802 "desc" : "(optional) The scope (this object) for the handler",
810 "name" : "fireEvent",
811 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
813 "isConstructor" : false,
815 "memberOf" : "Roo.util.Observable",
822 "name" : "eventName",
829 "type" : "Object...",
830 "desc" : "Variable number of parameters are passed to handlers",
838 "desc" : "returns false if any of the handlers return false otherwise it returns true"
843 "name" : "hasListener",
844 "desc" : "Checks to see if this object has any listeners for a specified event",
846 "isConstructor" : false,
848 "memberOf" : "Roo.util.Observable",
855 "name" : "eventName",
857 "desc" : "The name of the event to check for",
865 "desc" : "True if the event is being listened for, else false"
871 "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.",
873 "isConstructor" : false,
875 "memberOf" : "Roo.util.Observable",
883 "type" : "Observable",
884 "desc" : "The Observable to capture",
890 "desc" : "The function to call",
896 "desc" : "(optional) The scope (this object) for the fn",
904 "name" : "addListener",
905 "desc" : "Appends an event handler to this component",
907 "isConstructor" : false,
909 "memberOf" : "Roo.util.Observable",
916 "name" : "eventName",
918 "desc" : "The type of event to listen for",
924 "desc" : "The method the event invokes",
930 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
936 "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>",
947 "desc" : "Fires after the component is moved.",
948 "memberOf" : "Roo.BoxComponent",
956 "type" : "Roo.Component",
963 "desc" : "The new x position",
969 "desc" : "The new y position",
978 "desc" : "Fires after the component is resized.",
979 "memberOf" : "Roo.BoxComponent",
987 "type" : "Roo.Component",
994 "desc" : "The box-adjusted width that was set",
998 "name" : "adjHeight",
1000 "desc" : "The box-adjusted height that was set",
1001 "isOptional" : false
1004 "name" : "rawWidth",
1006 "desc" : "The width that was originally specified",
1007 "isOptional" : false
1010 "name" : "rawHeight",
1012 "desc" : "The height that was originally specified",
1013 "isOptional" : false
1020 "name" : "beforerender",
1021 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1022 "memberOf" : "Roo.Component",
1030 "type" : "Roo.Component",
1032 "isOptional" : false
1040 "desc" : "Fires after the component is disabled.",
1041 "memberOf" : "Roo.Component",
1049 "type" : "Roo.Component",
1051 "isOptional" : false
1059 "desc" : "Fires after the component is rendered.",
1060 "memberOf" : "Roo.Component",
1068 "type" : "Roo.Component",
1070 "isOptional" : false
1078 "desc" : "Fires after the component is destroyed.",
1079 "memberOf" : "Roo.Component",
1087 "type" : "Roo.Component",
1089 "isOptional" : false
1097 "desc" : "Fires after the component is hidden.",
1098 "memberOf" : "Roo.Component",
1106 "type" : "Roo.Component",
1108 "isOptional" : false
1115 "name" : "beforehide",
1116 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1117 "memberOf" : "Roo.Component",
1125 "type" : "Roo.Component",
1127 "isOptional" : false
1135 "desc" : "Fires after the component is shown.",
1136 "memberOf" : "Roo.Component",
1144 "type" : "Roo.Component",
1146 "isOptional" : false
1153 "name" : "beforeshow",
1154 "desc" : "Fires before the component is shown. Return false to stop the show.",
1155 "memberOf" : "Roo.Component",
1163 "type" : "Roo.Component",
1165 "isOptional" : false
1173 "desc" : "Fires after the component is enabled.",
1174 "memberOf" : "Roo.Component",
1182 "type" : "Roo.Component",
1184 "isOptional" : false
1191 "name" : "beforedestroy",
1192 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1193 "memberOf" : "Roo.Component",
1201 "type" : "Roo.Component",
1203 "isOptional" : false