1 | <div class="body-wrap"> |
---|
2 | <div class="top-tools"> |
---|
3 | <a class="inner-link" href="#Ext.util.ClickRepeater-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> |
---|
4 | <a class="inner-link" href="#Ext.util.ClickRepeater-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> |
---|
5 | <a class="inner-link" href="#Ext.util.ClickRepeater-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> |
---|
6 | <a class="inner-link" href="#Ext.util.ClickRepeater-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> |
---|
7 | <a class="bookmark" href="../docs/?class=Ext.util.ClickRepeater"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> |
---|
8 | </div> |
---|
9 | <div class="inheritance res-block"> |
---|
10 | <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a> |
---|
11 | <img src="resources/elbow-end.gif"/>ClickRepeater</pre></div> |
---|
12 | <h1>Class Ext.util.ClickRepeater</h1> |
---|
13 | <table cellspacing="0"> |
---|
14 | <tr><td class="label">Package:</td><td class="hd-info">Ext.util</td></tr> |
---|
15 | <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/ClickRepeater.js" target="_blank">ClickRepeater.js</a></td></tr> |
---|
16 | <tr><td class="label">Class:</td><td class="hd-info">ClickRepeater</td></tr> |
---|
17 | <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr> |
---|
18 | </table> |
---|
19 | <div class="description"> |
---|
20 | * |
---|
21 | |
---|
22 | A wrapper class which can be applied to any element. Fires a "click" event while the |
---|
23 | mouse is pressed. The interval between firings may be specified in the config but |
---|
24 | defaults to 20 milliseconds. |
---|
25 | |
---|
26 | Optionally, a CSS class may be applied to the element during the time it is pressed. </div> |
---|
27 | |
---|
28 | <div class="hr"></div> |
---|
29 | <a id="Ext.util.ClickRepeater-configs"></a> |
---|
30 | <h2>Config Options</h2> |
---|
31 | <table cellspacing="0" class="member-table"> |
---|
32 | <tr> |
---|
33 | <th class="sig-header" colspan="2">Config Options</th> |
---|
34 | <th class="msource-header">Defined By</th> |
---|
35 | </tr> |
---|
36 | <tr class="config-row"> |
---|
37 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
38 | <td class="sig"> |
---|
39 | <a id="Ext.util.ClickRepeater-accelerate"></a> |
---|
40 | <b>accelerate</b> : Boolean <div class="mdesc"> |
---|
41 | True if autorepeating should start slowly and accelerate. "interval" and "delay" are ignored. </div> |
---|
42 | </td> |
---|
43 | <td class="msource">ClickRepeater</td> |
---|
44 | </tr> |
---|
45 | <tr class="config-row alt"> |
---|
46 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
47 | <td class="sig"> |
---|
48 | <a id="Ext.util.ClickRepeater-delay"></a> |
---|
49 | <b>delay</b> : Number <div class="mdesc"> |
---|
50 | The initial delay before the repeating event begins firing. Similar to an autorepeat key delay. </div> |
---|
51 | </td> |
---|
52 | <td class="msource">ClickRepeater</td> |
---|
53 | </tr> |
---|
54 | <tr class="config-row"> |
---|
55 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
56 | <td class="sig"> |
---|
57 | <a id="Ext.util.ClickRepeater-el"></a> |
---|
58 | <b>el</b> : Mixed <div class="mdesc"> |
---|
59 | The element to act as a button. </div> |
---|
60 | </td> |
---|
61 | <td class="msource">ClickRepeater</td> |
---|
62 | </tr> |
---|
63 | <tr class="config-row alt"> |
---|
64 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
65 | <td class="sig"> |
---|
66 | <a id="Ext.util.ClickRepeater-interval"></a> |
---|
67 | <b>interval</b> : Number <div class="mdesc"> |
---|
68 | The interval between firings of the "click" event. Default 20 ms. </div> |
---|
69 | </td> |
---|
70 | <td class="msource">ClickRepeater</td> |
---|
71 | </tr> |
---|
72 | <tr class="config-row inherited expandable"> |
---|
73 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
74 | <td class="sig"> |
---|
75 | <a id="Ext.util.ClickRepeater-listeners"></a> |
---|
76 | <b>listeners</b> : Object <div class="mdesc"> |
---|
77 | <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div> |
---|
78 | <div class="long"> |
---|
79 | (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div> |
---|
80 | </div> |
---|
81 | </td> |
---|
82 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td> |
---|
83 | </tr> |
---|
84 | <tr class="config-row alt"> |
---|
85 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
86 | <td class="sig"> |
---|
87 | <a id="Ext.util.ClickRepeater-pressClass"></a> |
---|
88 | <b>pressClass</b> : String <div class="mdesc"> |
---|
89 | A CSS class name to be applied to the element while pressed. </div> |
---|
90 | </td> |
---|
91 | <td class="msource">ClickRepeater</td> |
---|
92 | </tr> |
---|
93 | <tr class="config-row"> |
---|
94 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
95 | <td class="sig"> |
---|
96 | <a id="Ext.util.ClickRepeater-preventDefault"></a> |
---|
97 | <b>preventDefault</b> : Boolean <div class="mdesc"> |
---|
98 | True to prevent the default click event </div> |
---|
99 | </td> |
---|
100 | <td class="msource">ClickRepeater</td> |
---|
101 | </tr> |
---|
102 | <tr class="config-row alt"> |
---|
103 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
104 | <td class="sig"> |
---|
105 | <a id="Ext.util.ClickRepeater-stopDefault"></a> |
---|
106 | <b>stopDefault</b> : Boolean <div class="mdesc"> |
---|
107 | True to stop the default click event </div> |
---|
108 | </td> |
---|
109 | <td class="msource">ClickRepeater</td> |
---|
110 | </tr> |
---|
111 | </table> |
---|
112 | <a id="Ext.util.ClickRepeater-props"></a> |
---|
113 | <h2>Public Properties</h2> |
---|
114 | <div class="no-members">This class has no public properties.</div> <a id="Ext.util.ClickRepeater-methods"></a> |
---|
115 | <h2>Public Methods</h2> |
---|
116 | <table cellspacing="0" class="member-table"> |
---|
117 | <tr> |
---|
118 | <th class="sig-header" colspan="2">Method</th> |
---|
119 | <th class="msource-header">Defined By</th> |
---|
120 | </tr> |
---|
121 | <tr class="method-row expandable"> |
---|
122 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
123 | <td class="sig"> |
---|
124 | <a id="Ext.util.ClickRepeater-ClickRepeater"></a> |
---|
125 | <b>ClickRepeater</b>( <code>Mixed el</code>, <code>Object config</code> ) <div class="mdesc"> |
---|
126 | <div class="short"></div> |
---|
127 | <div class="long"> |
---|
128 | <div class="mdetail-params"> |
---|
129 | <strong>Parameters:</strong> |
---|
130 | <ul><li><code>el</code> : Mixed<div class="sub-desc">The element to listen on</div></li><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul> |
---|
131 | <strong>Returns:</strong> |
---|
132 | <ul> |
---|
133 | <li><code></code></li> |
---|
134 | </ul> |
---|
135 | </div> |
---|
136 | </div> |
---|
137 | </div> |
---|
138 | </td> |
---|
139 | <td class="msource">ClickRepeater</td> |
---|
140 | </tr> |
---|
141 | <tr class="method-row inherited alt expandable"> |
---|
142 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
143 | <td class="sig"> |
---|
144 | <a id="Ext.util.ClickRepeater-addEvents"></a> |
---|
145 | <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc"> |
---|
146 | <div class="short">Used to define events on this Observable</div> |
---|
147 | <div class="long"> |
---|
148 | Used to define events on this Observable <div class="mdetail-params"> |
---|
149 | <strong>Parameters:</strong> |
---|
150 | <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul> |
---|
151 | <strong>Returns:</strong> |
---|
152 | <ul> |
---|
153 | <li><code>void</code></li> |
---|
154 | </ul> |
---|
155 | </div> |
---|
156 | </div> |
---|
157 | </div> |
---|
158 | </td> |
---|
159 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td> |
---|
160 | </tr> |
---|
161 | <tr class="method-row inherited expandable"> |
---|
162 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
163 | <td class="sig"> |
---|
164 | <a id="Ext.util.ClickRepeater-addListener"></a> |
---|
165 | <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
166 | <div class="short">Appends an event handler to this component</div> |
---|
167 | <div class="long"> |
---|
168 | Appends an event handler to this component <div class="mdetail-params"> |
---|
169 | <strong>Parameters:</strong> |
---|
170 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
171 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration |
---|
172 | properties. This may contain any of the following properties:<ul> |
---|
173 | <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li> |
---|
174 | <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li> |
---|
175 | <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li> |
---|
176 | <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed |
---|
177 | by the specified number of milliseconds. If the event fires again within that time, the original |
---|
178 | handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li> |
---|
179 | </ul><br> |
---|
180 | <p> |
---|
181 | <b>Combining Options</b><br> |
---|
182 | Using the options argument, it is possible to combine different types of listeners:<br> |
---|
183 | <br> |
---|
184 | A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId) |
---|
185 | <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, { |
---|
186 | single: true, |
---|
187 | delay: 100, |
---|
188 | forumId: 4 |
---|
189 | });</code></pre> |
---|
190 | <p> |
---|
191 | <b>Attaching multiple handlers in 1 call</b><br> |
---|
192 | The method also allows for a single argument to be passed which is a config object containing properties |
---|
193 | which specify multiple handlers. |
---|
194 | <p> |
---|
195 | <pre><code>foo.on({ |
---|
196 | <em>'click'</em> : { |
---|
197 | fn: <b>this</b>.onClick, |
---|
198 | scope: <b>this</b>, |
---|
199 | delay: 100 |
---|
200 | }, |
---|
201 | <em>'mouseover'</em> : { |
---|
202 | fn: <b>this</b>.onMouseOver, |
---|
203 | scope: <b>this</b> |
---|
204 | }, |
---|
205 | <em>'mouseout'</em> : { |
---|
206 | fn: <b>this</b>.onMouseOut, |
---|
207 | scope: <b>this</b> |
---|
208 | } |
---|
209 | });</code></pre> |
---|
210 | <p> |
---|
211 | Or a shorthand syntax:<br> |
---|
212 | <pre><code>foo.on({ |
---|
213 | <em>'click'</em> : <b>this</b>.onClick, |
---|
214 | <em>'mouseover'</em> : <b>this</b>.onMouseOver, |
---|
215 | <em>'mouseout'</em> : <b>this</b>.onMouseOut, |
---|
216 | scope: <b>this</b> |
---|
217 | });</code></pre></div></li> </ul> |
---|
218 | <strong>Returns:</strong> |
---|
219 | <ul> |
---|
220 | <li><code>void</code></li> |
---|
221 | </ul> |
---|
222 | </div> |
---|
223 | </div> |
---|
224 | </div> |
---|
225 | </td> |
---|
226 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td> |
---|
227 | </tr> |
---|
228 | <tr class="method-row inherited alt expandable"> |
---|
229 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
230 | <td class="sig"> |
---|
231 | <a id="Ext.util.ClickRepeater-fireEvent"></a> |
---|
232 | <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc"> |
---|
233 | <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> |
---|
234 | <div class="long"> |
---|
235 | Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params"> |
---|
236 | <strong>Parameters:</strong> |
---|
237 | <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul> |
---|
238 | <strong>Returns:</strong> |
---|
239 | <ul> |
---|
240 | <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li> |
---|
241 | </ul> |
---|
242 | </div> |
---|
243 | </div> |
---|
244 | </div> |
---|
245 | </td> |
---|
246 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td> |
---|
247 | </tr> |
---|
248 | <tr class="method-row inherited expandable"> |
---|
249 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
250 | <td class="sig"> |
---|
251 | <a id="Ext.util.ClickRepeater-hasListener"></a> |
---|
252 | <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc"> |
---|
253 | <div class="short">Checks to see if this object has any listeners for a specified event</div> |
---|
254 | <div class="long"> |
---|
255 | Checks to see if this object has any listeners for a specified event <div class="mdetail-params"> |
---|
256 | <strong>Parameters:</strong> |
---|
257 | <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul> |
---|
258 | <strong>Returns:</strong> |
---|
259 | <ul> |
---|
260 | <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li> |
---|
261 | </ul> |
---|
262 | </div> |
---|
263 | </div> |
---|
264 | </div> |
---|
265 | </td> |
---|
266 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td> |
---|
267 | </tr> |
---|
268 | <tr class="method-row inherited alt expandable"> |
---|
269 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
270 | <td class="sig"> |
---|
271 | <a id="Ext.util.ClickRepeater-on"></a> |
---|
272 | <b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
273 | <div class="short">Appends an event handler to this element (shorthand for addListener)</div> |
---|
274 | <div class="long"> |
---|
275 | Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params"> |
---|
276 | <strong>Parameters:</strong> |
---|
277 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
278 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul> |
---|
279 | <strong>Returns:</strong> |
---|
280 | <ul> |
---|
281 | <li><code>void</code></li> |
---|
282 | </ul> |
---|
283 | </div> |
---|
284 | </div> |
---|
285 | </div> |
---|
286 | </td> |
---|
287 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td> |
---|
288 | </tr> |
---|
289 | <tr class="method-row inherited expandable"> |
---|
290 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
291 | <td class="sig"> |
---|
292 | <a id="Ext.util.ClickRepeater-purgeListeners"></a> |
---|
293 | <b>purgeListeners</b>() : void <div class="mdesc"> |
---|
294 | <div class="short">Removes all listeners for this object</div> |
---|
295 | <div class="long"> |
---|
296 | Removes all listeners for this object <div class="mdetail-params"> |
---|
297 | <strong>Parameters:</strong> |
---|
298 | <ul><li>None.</li> </ul> |
---|
299 | <strong>Returns:</strong> |
---|
300 | <ul> |
---|
301 | <li><code>void</code></li> |
---|
302 | </ul> |
---|
303 | </div> |
---|
304 | </div> |
---|
305 | </div> |
---|
306 | </td> |
---|
307 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td> |
---|
308 | </tr> |
---|
309 | <tr class="method-row inherited alt expandable"> |
---|
310 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
311 | <td class="sig"> |
---|
312 | <a id="Ext.util.ClickRepeater-relayEvents"></a> |
---|
313 | <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc"> |
---|
314 | <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div> |
---|
315 | <div class="long"> |
---|
316 | Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params"> |
---|
317 | <strong>Parameters:</strong> |
---|
318 | <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li> </ul> |
---|
319 | <strong>Returns:</strong> |
---|
320 | <ul> |
---|
321 | <li><code>void</code></li> |
---|
322 | </ul> |
---|
323 | </div> |
---|
324 | </div> |
---|
325 | </div> |
---|
326 | </td> |
---|
327 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td> |
---|
328 | </tr> |
---|
329 | <tr class="method-row inherited expandable"> |
---|
330 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
331 | <td class="sig"> |
---|
332 | <a id="Ext.util.ClickRepeater-removeListener"></a> |
---|
333 | <b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
334 | <div class="short">Removes a listener</div> |
---|
335 | <div class="long"> |
---|
336 | Removes a listener <div class="mdetail-params"> |
---|
337 | <strong>Parameters:</strong> |
---|
338 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
339 | <strong>Returns:</strong> |
---|
340 | <ul> |
---|
341 | <li><code>void</code></li> |
---|
342 | </ul> |
---|
343 | </div> |
---|
344 | </div> |
---|
345 | </div> |
---|
346 | </td> |
---|
347 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td> |
---|
348 | </tr> |
---|
349 | <tr class="method-row inherited alt expandable"> |
---|
350 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
351 | <td class="sig"> |
---|
352 | <a id="Ext.util.ClickRepeater-resumeEvents"></a> |
---|
353 | <b>resumeEvents</b>() : void <div class="mdesc"> |
---|
354 | <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div> |
---|
355 | <div class="long"> |
---|
356 | Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params"> |
---|
357 | <strong>Parameters:</strong> |
---|
358 | <ul><li>None.</li> </ul> |
---|
359 | <strong>Returns:</strong> |
---|
360 | <ul> |
---|
361 | <li><code>void</code></li> |
---|
362 | </ul> |
---|
363 | </div> |
---|
364 | </div> |
---|
365 | </div> |
---|
366 | </td> |
---|
367 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td> |
---|
368 | </tr> |
---|
369 | <tr class="method-row inherited expandable"> |
---|
370 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
371 | <td class="sig"> |
---|
372 | <a id="Ext.util.ClickRepeater-suspendEvents"></a> |
---|
373 | <b>suspendEvents</b>() : void <div class="mdesc"> |
---|
374 | <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div> |
---|
375 | <div class="long"> |
---|
376 | Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params"> |
---|
377 | <strong>Parameters:</strong> |
---|
378 | <ul><li>None.</li> </ul> |
---|
379 | <strong>Returns:</strong> |
---|
380 | <ul> |
---|
381 | <li><code>void</code></li> |
---|
382 | </ul> |
---|
383 | </div> |
---|
384 | </div> |
---|
385 | </div> |
---|
386 | </td> |
---|
387 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td> |
---|
388 | </tr> |
---|
389 | <tr class="method-row inherited alt expandable"> |
---|
390 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
391 | <td class="sig"> |
---|
392 | <a id="Ext.util.ClickRepeater-un"></a> |
---|
393 | <b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
394 | <div class="short">Removes a listener (shorthand for removeListener)</div> |
---|
395 | <div class="long"> |
---|
396 | Removes a listener (shorthand for removeListener) <div class="mdetail-params"> |
---|
397 | <strong>Parameters:</strong> |
---|
398 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
399 | <strong>Returns:</strong> |
---|
400 | <ul> |
---|
401 | <li><code>void</code></li> |
---|
402 | </ul> |
---|
403 | </div> |
---|
404 | </div> |
---|
405 | </div> |
---|
406 | </td> |
---|
407 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td> |
---|
408 | </tr> |
---|
409 | </table> |
---|
410 | <a id="Ext.util.ClickRepeater-events"></a> |
---|
411 | <h2>Public Events</h2> |
---|
412 | <table cellspacing="0" class="member-table"> |
---|
413 | <tr> |
---|
414 | <th class="sig-header" colspan="2">Event</th> |
---|
415 | <th class="msource-header">Defined By</th> |
---|
416 | </tr> |
---|
417 | <tr class="event-row expandable"> |
---|
418 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
419 | <td class="sig"> |
---|
420 | <a id="Ext.util.ClickRepeater-click"></a> |
---|
421 | <b>click</b> : ( <code>Ext.util.ClickRepeater this</code> ) <div class="mdesc"> |
---|
422 | <div class="short">Fires on a specified interval during the time the element is pressed.</div> |
---|
423 | <div class="long"> |
---|
424 | Fires on a specified interval during the time the element is pressed. <div class="mdetail-params"> |
---|
425 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
426 | <ul><li><code>this</code> : Ext.util.ClickRepeater<div class="sub-desc"></div></li> </ul> |
---|
427 | </div> |
---|
428 | </div> |
---|
429 | </div> |
---|
430 | </td> |
---|
431 | <td class="msource">ClickRepeater</td> |
---|
432 | </tr> |
---|
433 | <tr class="event-row alt expandable"> |
---|
434 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
435 | <td class="sig"> |
---|
436 | <a id="Ext.util.ClickRepeater-mousedown"></a> |
---|
437 | <b>mousedown</b> : ( <code>Ext.util.ClickRepeater this</code> ) <div class="mdesc"> |
---|
438 | <div class="short">Fires when the mouse button is depressed.</div> |
---|
439 | <div class="long"> |
---|
440 | Fires when the mouse button is depressed. <div class="mdetail-params"> |
---|
441 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
442 | <ul><li><code>this</code> : Ext.util.ClickRepeater<div class="sub-desc"></div></li> </ul> |
---|
443 | </div> |
---|
444 | </div> |
---|
445 | </div> |
---|
446 | </td> |
---|
447 | <td class="msource">ClickRepeater</td> |
---|
448 | </tr> |
---|
449 | <tr class="event-row expandable"> |
---|
450 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
451 | <td class="sig"> |
---|
452 | <a id="Ext.util.ClickRepeater-mouseup"></a> |
---|
453 | <b>mouseup</b> : ( <code>Ext.util.ClickRepeater this</code> ) <div class="mdesc"> |
---|
454 | <div class="short">Fires when the mouse key is released.</div> |
---|
455 | <div class="long"> |
---|
456 | Fires when the mouse key is released. <div class="mdetail-params"> |
---|
457 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
458 | <ul><li><code>this</code> : Ext.util.ClickRepeater<div class="sub-desc"></div></li> </ul> |
---|
459 | </div> |
---|
460 | </div> |
---|
461 | </div> |
---|
462 | </td> |
---|
463 | <td class="msource">ClickRepeater</td> |
---|
464 | </tr> |
---|
465 | </table> |
---|
466 | |
---|
467 | </div> |
---|