2 "name" : "Roo.EventManager",
5 "desc" : "Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides \nseveral useful events directly.\nSee {@link Roo.EventObject} for more details on normalized event objects.",
9 "memberOf" : "EventManager",
22 "name" : "addListener",
23 "desc" : "Appends an event handler to an element (shorthand for addListener)",
25 "isConstructor" : false,
27 "memberOf" : "Roo.EventManager",
35 "type" : "String/HTMLElement",
36 "desc" : "The html element or id to assign the",
42 "desc" : "The type of event to listen for",
48 "desc" : "The method the event invokes",
54 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
60 "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>delegate {String} A simple selector to filter the target or look for a descendant of the target</li>\n<li>stopEvent {Boolean} True to stop the event. That is stop propagation, and prevent the default action.</li>\n<li>preventDefault {Boolean} True to prevent the default action</li>\n<li>stopPropagation {Boolean} True to prevent event propagation</li>\n<li>normalized {Boolean} False to pass a browser event to the handler function instead of an Roo.EventObject</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)<div style=\"margin: 5px 20px 20px;\">\nCode:<pre><code>\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});</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<p>\nCode:<pre><code>\nel.on({\n 'click' : {\n fn: this.onClick\n scope: this,\n delay: 100\n },\n 'mouseover' : {\n fn: this.onMouseOver\n scope: this\n },\n 'mouseout' : {\n fn: this.onMouseOut\n scope: this\n }\n});</code></pre>\n<p>\nOr a shorthand syntax:<br>\nCode:<pre><code>\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut\n scope: this\n});</code></pre>",
68 "name" : "onDocumentReady",
69 "desc" : "Fires when the document is ready (before onload and before images are loaded). Can be \naccessed shorthanded Roo.onReady().",
71 "isConstructor" : false,
73 "memberOf" : "Roo.EventManager",
82 "desc" : "The method the event invokes",
88 "desc" : "An object that becomes the scope of the handler",
102 "name" : "onTextResize",
103 "desc" : "Fires when the user changes the active text size. Handler gets called with 2 params, the old size and the new size.",
105 "isConstructor" : false,
107 "memberOf" : "Roo.EventManager",
116 "desc" : "The method the event invokes",
122 "desc" : "An object that becomes the scope of the handler",
137 "desc" : "Appends an event handler to an element (shorthand for addListener)",
139 "isConstructor" : false,
141 "memberOf" : "Roo.EventManager",
149 "type" : "String/HTMLElement",
150 "desc" : "The html element or id to assign the",
154 "name" : "eventName",
156 "desc" : "The type of event to listen for",
162 "desc" : "The method the event invokes",
168 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
174 "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>delegate {String} A simple selector to filter the target or look for a descendant of the target</li>\n<li>stopEvent {Boolean} True to stop the event. That is stop propagation, and prevent the default action.</li>\n<li>preventDefault {Boolean} True to prevent the default action</li>\n<li>stopPropagation {Boolean} True to prevent event propagation</li>\n<li>normalized {Boolean} False to pass a browser event to the handler function instead of an Roo.EventObject</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)<div style=\"margin: 5px 20px 20px;\">\nCode:<pre><code>\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});</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<p>\nCode:<pre><code>\nel.on({\n 'click' : {\n fn: this.onClick\n scope: this,\n delay: 100\n },\n 'mouseover' : {\n fn: this.onMouseOver\n scope: this\n },\n 'mouseout' : {\n fn: this.onMouseOut\n scope: this\n }\n});</code></pre>\n<p>\nOr a shorthand syntax:<br>\nCode:<pre><code>\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut\n scope: this\n});</code></pre>",
182 "name" : "removeResizeListener",
183 "desc" : "Removes the passed window resize listener.",
185 "isConstructor" : false,
187 "memberOf" : "Roo.EventManager",
196 "desc" : "The method the event invokes",
202 "desc" : "The scope of handler",
210 "name" : "onWindowResize",
211 "desc" : "Fires when the window is resized and provides resize event buffering (50 milliseconds), passes new viewport width and height to handlers.",
213 "isConstructor" : false,
215 "memberOf" : "Roo.EventManager",
224 "desc" : "The method the event invokes",
230 "desc" : "An object that becomes the scope of the handler",
245 "desc" : "This is no longer needed and is deprecated. Places a simple wrapper around an event handler to override the browser event\nobject with a Roo.EventObject",
247 "isConstructor" : false,
249 "memberOf" : "Roo.EventManager",
251 "deprecated" : "This has been deprecated: ",
258 "desc" : "The method the event invokes",
264 "desc" : "An object that becomes the scope of the handler",
270 "desc" : "If true, the obj passed in becomes\n the execution scope of the listener",
278 "desc" : "The wrapped function"
283 "name" : "removeListener",
284 "desc" : "Removes an event handler",
286 "isConstructor" : false,
288 "memberOf" : "Roo.EventManager",
296 "type" : "String/HTMLElement",
297 "desc" : "The id or html element to remove the \n event from",
301 "name" : "eventName",
303 "desc" : "The type of event",
317 "desc" : "True if a listener was actually removed"