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",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
37 "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\".",
38 "memberOf" : "Roo.Component",
47 "desc" : "the tag for this item (default div)",
48 "memberOf" : "Roo.form.TextItem",
52 "name" : "allowDomMove",
54 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
55 "memberOf" : "Roo.Component",
61 "desc" : "the content for this item",
62 "memberOf" : "Roo.form.TextItem",
66 "name" : "actionMode",
68 "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",
69 "memberOf" : "Roo.Component",
75 "desc" : "width (optional) size of component",
76 "memberOf" : "Roo.BoxComponent",
82 "desc" : "height (optional) size of component",
83 "memberOf" : "Roo.BoxComponent",
87 "name" : "disableClass",
89 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
90 "memberOf" : "Roo.Component",
97 "desc" : "Sets the current box measurements of the component's underlying element.",
99 "isConstructor" : false,
101 "memberOf" : "Roo.BoxComponent",
110 "desc" : "An object in the format {x, y, width, height}",
117 "name" : "setPagePosition",
118 "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.",
120 "isConstructor" : false,
122 "memberOf" : "Roo.BoxComponent",
131 "desc" : "The new x position",
137 "desc" : "The new y position",
145 "desc" : "Force the component's size to recalculate based on the underlying element's current height and width.",
147 "isConstructor" : false,
149 "memberOf" : "Roo.BoxComponent",
159 "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}.",
161 "isConstructor" : false,
163 "memberOf" : "Roo.BoxComponent",
171 "type" : "Number/Object",
172 "desc" : "The new width to set, or a size object in the format {width, height}",
178 "desc" : "The new height to set (not required if a size object is passed as the first arg)",
185 "type" : "Roo.BoxComponent",
191 "name" : "getPosition",
192 "desc" : "Gets the current XY position of the component's underlying element.",
194 "isConstructor" : false,
196 "memberOf" : "Roo.BoxComponent",
205 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
213 "desc" : "The XY position of the element (e.g., [100, 200])"
219 "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.",
221 "isConstructor" : false,
223 "memberOf" : "Roo.BoxComponent",
232 "desc" : "The box-adjusted width that was set",
236 "name" : "adjHeight",
238 "desc" : "The box-adjusted height that was set",
244 "desc" : "The width that was originally specified",
248 "name" : "rawHeight",
250 "desc" : "The height that was originally specified",
258 "desc" : "Gets the current box measurements of the component's underlying element.",
260 "isConstructor" : false,
262 "memberOf" : "Roo.BoxComponent",
271 "desc" : "(optional) If true the element's left and top are returned instead of page XY (defaults to false)",
279 "desc" : "Gets the current size of the component's underlying element.",
281 "isConstructor" : false,
283 "memberOf" : "Roo.BoxComponent",
293 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
298 "name" : "onPosition",
299 "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.",
301 "isConstructor" : false,
303 "memberOf" : "Roo.BoxComponent",
312 "desc" : "The new x position",
318 "desc" : "The new y position",
325 "name" : "setPosition",
326 "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.",
328 "isConstructor" : false,
330 "memberOf" : "Roo.BoxComponent",
339 "desc" : "The new left",
345 "desc" : "The new top",
353 "desc" : "Returns the id of this component.",
355 "isConstructor" : false,
357 "memberOf" : "Roo.Component",
373 "desc" : "If this is a lazy rendering component, render it to its container element.",
375 "isConstructor" : false,
377 "memberOf" : "Roo.Component",
384 "name" : "container",
385 "type" : "String/HTMLElement/Element",
386 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
394 "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}.",
396 "isConstructor" : false,
398 "memberOf" : "Roo.Component",
407 "name" : "isVisible",
408 "desc" : "Returns true if this component is visible.",
410 "isConstructor" : false,
412 "memberOf" : "Roo.Component",
421 "name" : "setDisabled",
422 "desc" : "Convenience function for setting disabled/enabled by boolean.",
424 "isConstructor" : false,
426 "memberOf" : "Roo.Component",
443 "desc" : "Hide this component.",
445 "isConstructor" : false,
447 "memberOf" : "Roo.Component",
456 "type" : "Roo.Component",
463 "desc" : "Try to focus this component.",
465 "isConstructor" : false,
467 "memberOf" : "Roo.Component",
474 "name" : "selectText",
476 "desc" : "True to also select the text in this component (if applicable)",
483 "type" : "Roo.Component",
490 "desc" : "Show this component.",
492 "isConstructor" : false,
494 "memberOf" : "Roo.Component",
503 "type" : "Roo.Component",
510 "desc" : "Enable this component.",
512 "isConstructor" : false,
514 "memberOf" : "Roo.Component",
523 "type" : "Roo.Component",
529 "name" : "setVisible",
530 "desc" : "Convenience function to hide or show this component by boolean.",
532 "isConstructor" : false,
534 "memberOf" : "Roo.Component",
543 "desc" : "True to show, false to hide",
550 "type" : "Roo.Component",
557 "desc" : "Disable this component.",
559 "isConstructor" : false,
561 "memberOf" : "Roo.Component",
570 "type" : "Roo.Component",
577 "desc" : "Returns the underlying {@link Roo.Element}.",
579 "isConstructor" : false,
581 "memberOf" : "Roo.Component",
590 "type" : "Roo.Element",
591 "desc" : "The element"
596 "name" : "purgeListeners",
597 "desc" : "Removes all listeners for this object",
599 "isConstructor" : false,
601 "memberOf" : "Roo.util.Observable",
611 "desc" : "Appends an event handler to this element (shorthand for addListener)",
613 "isConstructor" : false,
615 "memberOf" : "Roo.util.Observable",
622 "name" : "eventName",
624 "desc" : "The type of event to listen for",
630 "desc" : "The method the event invokes",
636 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
642 "desc" : "(optional)",
650 "desc" : "Removes a listener (shorthand for removeListener)",
652 "isConstructor" : false,
654 "memberOf" : "Roo.util.Observable",
661 "name" : "eventName",
663 "desc" : "The type of event to listen for",
669 "desc" : "The handler to remove",
675 "desc" : "(optional) The scope (this object) for the handler",
682 "name" : "addEvents",
683 "desc" : "Used to define events on this Observable",
685 "isConstructor" : false,
687 "memberOf" : "Roo.util.Observable",
696 "desc" : "The object with the events defined",
703 "name" : "releaseCapture",
704 "desc" : "Removes <b>all</b> added captures from the Observable.",
706 "isConstructor" : false,
708 "memberOf" : "Roo.util.Observable",
716 "type" : "Observable",
717 "desc" : "The Observable to release",
724 "name" : "removeListener",
725 "desc" : "Removes a listener",
727 "isConstructor" : false,
729 "memberOf" : "Roo.util.Observable",
736 "name" : "eventName",
738 "desc" : "The type of event to listen for",
744 "desc" : "The handler to remove",
750 "desc" : "(optional) The scope (this object) for the handler",
757 "name" : "fireEvent",
758 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
760 "isConstructor" : false,
762 "memberOf" : "Roo.util.Observable",
769 "name" : "eventName",
776 "type" : "Object...",
777 "desc" : "Variable number of parameters are passed to handlers",
785 "desc" : "returns false if any of the handlers return false otherwise it returns true"
790 "name" : "hasListener",
791 "desc" : "Checks to see if this object has any listeners for a specified event",
793 "isConstructor" : false,
795 "memberOf" : "Roo.util.Observable",
802 "name" : "eventName",
804 "desc" : "The name of the event to check for",
812 "desc" : "True if the event is being listened for, else false"
818 "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.",
820 "isConstructor" : false,
822 "memberOf" : "Roo.util.Observable",
830 "type" : "Observable",
831 "desc" : "The Observable to capture",
837 "desc" : "The function to call",
843 "desc" : "(optional) The scope (this object) for the fn",
850 "name" : "addListener",
851 "desc" : "Appends an event handler to this component",
853 "isConstructor" : false,
855 "memberOf" : "Roo.util.Observable",
862 "name" : "eventName",
864 "desc" : "The type of event to listen for",
870 "desc" : "The method the event invokes",
876 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
882 "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>",
892 "desc" : "Fires after the component is moved.",
893 "memberOf" : "Roo.BoxComponent",
901 "type" : "Roo.Component",
908 "desc" : "The new x position",
914 "desc" : "The new y position",
922 "desc" : "Fires after the component is resized.",
923 "memberOf" : "Roo.BoxComponent",
931 "type" : "Roo.Component",
938 "desc" : "The box-adjusted width that was set",
942 "name" : "adjHeight",
944 "desc" : "The box-adjusted height that was set",
950 "desc" : "The width that was originally specified",
954 "name" : "rawHeight",
956 "desc" : "The height that was originally specified",
963 "name" : "beforerender",
964 "desc" : "Fires before the component is rendered. Return false to stop the render.",
965 "memberOf" : "Roo.Component",
973 "type" : "Roo.Component",
982 "desc" : "Fires after the component is disabled.",
983 "memberOf" : "Roo.Component",
991 "type" : "Roo.Component",
1000 "desc" : "Fires after the component is rendered.",
1001 "memberOf" : "Roo.Component",
1009 "type" : "Roo.Component",
1011 "isOptional" : false
1018 "desc" : "Fires after the component is destroyed.",
1019 "memberOf" : "Roo.Component",
1027 "type" : "Roo.Component",
1029 "isOptional" : false
1036 "desc" : "Fires after the component is hidden.",
1037 "memberOf" : "Roo.Component",
1045 "type" : "Roo.Component",
1047 "isOptional" : false
1053 "name" : "beforehide",
1054 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1055 "memberOf" : "Roo.Component",
1063 "type" : "Roo.Component",
1065 "isOptional" : false
1072 "desc" : "Fires after the component is shown.",
1073 "memberOf" : "Roo.Component",
1081 "type" : "Roo.Component",
1083 "isOptional" : false
1089 "name" : "beforeshow",
1090 "desc" : "Fires before the component is shown. Return false to stop the show.",
1091 "memberOf" : "Roo.Component",
1099 "type" : "Roo.Component",
1101 "isOptional" : false
1108 "desc" : "Fires after the component is enabled.",
1109 "memberOf" : "Roo.Component",
1117 "type" : "Roo.Component",
1119 "isOptional" : false
1125 "name" : "beforedestroy",
1126 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1127 "memberOf" : "Roo.Component",
1135 "type" : "Roo.Component",
1137 "isOptional" : false