1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.air.NativeWindow-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.air.NativeWindow-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.air.NativeWindow-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="inner-link" href="#Ext.air.NativeWindow-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7 <a class="bookmark" href="../docs/?class=Ext.air.NativeWindow"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
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"/><a ext:cls="Ext.air.NativeObservable" ext:member="" href="output/Ext.air.NativeObservable.html">NativeObservable</a>
12 <img src="resources/elbow-end.gif"/>NativeWindow</pre></div>
13 <h1>Class Ext.air.NativeWindow</h1>
14 <table cellspacing="0">
15 <tr><td class="label">Package:</td><td class="hd-info">Ext.air</td></tr>
16 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/NativeWindow.js" target="_blank">NativeWindow.js</a></td></tr>
17 <tr><td class="label">Class:</td><td class="hd-info">NativeWindow</td></tr>
18 <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.air.NativeObservable" ext:member="" href="output/Ext.air.NativeObservable.html">NativeObservable</a></td></tr>
20 <div class="description">
22 Wraps the AIR NativeWindow class to give an Ext friendly API. <br/><br/>This class also adds
23 automatic state management (position and size) for the window (by id) and it can be used
24 for easily creating "minimize to system tray" for the main window in your application.<br/><br/>
25 Note: Many of the config options for this class can only be applied to NEW windows. Passing
26 in an existing instance of a window along with those config options will have no effect. </div>
28 <div class="hr"></div>
29 <a id="Ext.air.NativeWindow-configs"></a>
30 <h2>Config Options</h2>
31 <table cellspacing="0" class="member-table">
33 <th class="sig-header" colspan="2">Config Options</th>
34 <th class="msource-header">Defined By</th>
36 <tr class="config-row">
\r
37 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
39 <a id="Ext.air.NativeWindow-chrome"></a>
\r
40 <b>chrome</b> : String <div class="mdesc">
\r
41 The native window chrome (defaults to 'standard', can also be 'none'). </div>
\r
43 <td class="msource">NativeWindow</td>
\r
45 <tr class="config-row alt">
\r
46 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
48 <a id="Ext.air.NativeWindow-height"></a>
\r
49 <b>height</b> : Number <div class="mdesc">
\r
52 <td class="msource">NativeWindow</td>
\r
54 <tr class="config-row">
\r
55 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
57 <a id="Ext.air.NativeWindow-instance"></a>
\r
58 <b>instance</b> : air.NativeWindow <div class="mdesc">
\r
59 The native window instance to wrap. If undefined, a new window will be created. </div>
\r
61 <td class="msource">NativeWindow</td>
\r
63 <tr class="config-row inherited alt expandable">
\r
64 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
66 <a id="Ext.air.NativeWindow-listeners"></a>
\r
67 <b>listeners</b> : Object <div class="mdesc">
\r
68 <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>
\r
70 (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>
\r
73 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
\r
75 <tr class="config-row">
\r
76 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
78 <a id="Ext.air.NativeWindow-maximizable"></a>
\r
79 <b>maximizable</b> : Boolean <div class="mdesc">
\r
82 <td class="msource">NativeWindow</td>
\r
84 <tr class="config-row alt">
\r
85 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
87 <a id="Ext.air.NativeWindow-minimizable"></a>
\r
88 <b>minimizable</b> : Boolean <div class="mdesc">
\r
91 <td class="msource">NativeWindow</td>
\r
93 <tr class="config-row expandable">
\r
94 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
96 <a id="Ext.air.NativeWindow-minimizeToTray"></a>
\r
97 <b>minimizeToTray</b> : Boolean <div class="mdesc">
\r
98 <div class="short">True to enable minimizing to the system tray. Note: this should only be applied to the primary window in your applica...</div>
\r
100 True to enable minimizing to the system tray. Note: this should only be applied to the primary window in your application. A trayIcon is required. </div>
\r
103 <td class="msource">NativeWindow</td>
\r
105 <tr class="config-row alt">
\r
106 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
108 <a id="Ext.air.NativeWindow-resizable"></a>
\r
109 <b>resizable</b> : Boolean <div class="mdesc">
\r
112 <td class="msource">NativeWindow</td>
\r
114 <tr class="config-row">
\r
115 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
117 <a id="Ext.air.NativeWindow-transparent"></a>
\r
118 <b>transparent</b> : Boolean <div class="mdesc">
\r
121 <td class="msource">NativeWindow</td>
\r
123 <tr class="config-row alt">
\r
124 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
126 <a id="Ext.air.NativeWindow-trayIcon"></a>
\r
127 <b>trayIcon</b> : String <div class="mdesc">
\r
128 The icon to display when minimized in the system tray </div>
\r
130 <td class="msource">NativeWindow</td>
\r
132 <tr class="config-row">
\r
133 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
135 <a id="Ext.air.NativeWindow-trayMenu"></a>
\r
136 <b>trayMenu</b> : NativeMenu <div class="mdesc">
\r
137 Menu to display when the tray icon is right clicked </div>
\r
139 <td class="msource">NativeWindow</td>
\r
141 <tr class="config-row alt">
\r
142 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
144 <a id="Ext.air.NativeWindow-trayTip"></a>
\r
145 <b>trayTip</b> : String <div class="mdesc">
\r
146 Tooltip for the tray icon </div>
\r
148 <td class="msource">NativeWindow</td>
\r
150 <tr class="config-row">
\r
151 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
153 <a id="Ext.air.NativeWindow-type"></a>
\r
154 <b>type</b> : String <div class="mdesc">
\r
155 The native window type - normal, utility or lightweight. (defaults to normal) </div>
\r
157 <td class="msource">NativeWindow</td>
\r
159 <tr class="config-row alt">
\r
160 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
162 <a id="Ext.air.NativeWindow-width"></a>
\r
163 <b>width</b> : Number <div class="mdesc">
\r
166 <td class="msource">NativeWindow</td>
\r
169 <a id="Ext.air.NativeWindow-props"></a>
170 <h2>Public Properties</h2>
171 <table cellspacing="0" class="member-table">
173 <th class="sig-header" colspan="2">Property</th>
174 <th class="msource-header">Defined By</th>
176 <tr class="property-row">
\r
177 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
179 <a id="Ext.air.NativeWindow-id"></a>
\r
180 <b>id</b> : String <div class="mdesc">
\r
183 <td class="msource">NativeWindow</td>
\r
186 <a id="Ext.air.NativeWindow-methods"></a>
187 <h2>Public Methods</h2>
188 <table cellspacing="0" class="member-table">
190 <th class="sig-header" colspan="2">Method</th>
191 <th class="msource-header">Defined By</th>
193 <tr class="method-row expandable">
\r
194 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
196 <a id="Ext.air.NativeWindow-NativeWindow"></a>
\r
197 <b>NativeWindow</b>( <code>Object config</code> ) <div class="mdesc">
\r
198 <div class="short"></div>
\r
200 <div class="mdetail-params">
\r
201 <strong>Parameters:</strong>
\r
202 <ul><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul>
\r
203 <strong>Returns:</strong>
\r
205 <li><code></code></li>
\r
211 <td class="msource">NativeWindow</td>
\r
213 <tr class="method-row alt expandable">
\r
214 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
216 <a id="Ext.air.NativeWindow-NativeWindow.getRootHtmlWindow"></a>
\r
217 <b>NativeWindow.getRootHtmlWindow</b>() : Window <div class="mdesc">
\r
218 <div class="short"><static> Returns the javascript "window" object of the first opened window in your application</div>
\r
220 <static> Returns the javascript "window" object of the first opened window in your application <div class="mdetail-params">
\r
221 <strong>Parameters:</strong>
\r
222 <ul><li>None.</li> </ul>
\r
223 <strong>Returns:</strong>
\r
225 <li><code>Window</code></li>
\r
231 <td class="msource">NativeWindow</td>
\r
233 <tr class="method-row expandable">
\r
234 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
236 <a id="Ext.air.NativeWindow-NativeWindow.getRootWindow"></a>
\r
237 <b>NativeWindow.getRootWindow</b>() : air.NativeWindow <div class="mdesc">
\r
238 <div class="short"><static> Returns the first opened window in your application</div>
\r
240 <static> Returns the first opened window in your application <div class="mdetail-params">
\r
241 <strong>Parameters:</strong>
\r
242 <ul><li>None.</li> </ul>
\r
243 <strong>Returns:</strong>
\r
245 <li><code>air.NativeWindow</code></li>
\r
251 <td class="msource">NativeWindow</td>
\r
253 <tr class="method-row alt expandable">
\r
254 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
256 <a id="Ext.air.NativeWindow-activate"></a>
\r
257 <b>activate</b>() : void <div class="mdesc">
\r
258 <div class="short">Shows and activates the window</div>
\r
260 Shows and activates the window <div class="mdetail-params">
\r
261 <strong>Parameters:</strong>
\r
262 <ul><li>None.</li> </ul>
\r
263 <strong>Returns:</strong>
\r
265 <li><code>void</code></li>
\r
271 <td class="msource">NativeWindow</td>
\r
273 <tr class="method-row inherited expandable">
\r
274 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
276 <a id="Ext.air.NativeWindow-addEvents"></a>
\r
277 <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">
\r
278 <div class="short">Used to define events on this Observable</div>
\r
280 Used to define events on this Observable <div class="mdetail-params">
\r
281 <strong>Parameters:</strong>
\r
282 <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
\r
283 <strong>Returns:</strong>
\r
285 <li><code>void</code></li>
\r
291 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
\r
293 <tr class="method-row inherited alt expandable">
\r
294 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
296 <a id="Ext.air.NativeWindow-addListener"></a>
\r
297 <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">
\r
298 <div class="short">Appends an event handler to this component</div>
\r
300 Appends an event handler to this component <div class="mdetail-params">
\r
301 <strong>Parameters:</strong>
\r
302 <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
303 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
304 properties. This may contain any of the following properties:<ul>
305 <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>
306 <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>
307 <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>
308 <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
309 by the specified number of milliseconds. If the event fires again within that time, the original
310 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
313 <b>Combining Options</b><br>
314 Using the options argument, it is possible to combine different types of listeners:<br>
316 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
317 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
323 <b>Attaching multiple handlers in 1 call</b><br>
324 The method also allows for a single argument to be passed which is a config object containing properties
325 which specify multiple handlers.
329 fn: <b>this</b>.onClick,
333 <em>'mouseover'</em> : {
334 fn: <b>this</b>.onMouseOver,
337 <em>'mouseout'</em> : {
338 fn: <b>this</b>.onMouseOut,
343 Or a shorthand syntax:<br>
345 <em>'click'</em> : <b>this</b>.onClick,
346 <em>'mouseover'</em> : <b>this</b>.onMouseOver,
347 <em>'mouseout'</em> : <b>this</b>.onMouseOut,
349 });</code></pre></div></li> </ul>
\r
350 <strong>Returns:</strong>
\r
352 <li><code>void</code></li>
\r
358 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
\r
360 <tr class="method-row expandable">
\r
361 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
363 <a id="Ext.air.NativeWindow-close"></a>
\r
364 <b>close</b>() : void <div class="mdesc">
\r
365 <div class="short">Closes the window</div>
\r
367 Closes the window <div class="mdetail-params">
\r
368 <strong>Parameters:</strong>
\r
369 <ul><li>None.</li> </ul>
\r
370 <strong>Returns:</strong>
\r
372 <li><code>void</code></li>
\r
378 <td class="msource">NativeWindow</td>
\r
380 <tr class="method-row inherited alt expandable">
\r
381 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
383 <a id="Ext.air.NativeWindow-fireEvent"></a>
\r
384 <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
\r
385 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
\r
387 Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
\r
388 <strong>Parameters:</strong>
\r
389 <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>
\r
390 <strong>Returns:</strong>
\r
392 <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
\r
398 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
\r
400 <tr class="method-row expandable">
\r
401 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
403 <a id="Ext.air.NativeWindow-fullscreen"></a>
\r
404 <b>fullscreen</b>( <span class="optional" title="Optional">[<code>Boolean nonInteractive</code>]</span> ) : void <div class="mdesc">
\r
405 <div class="short">Enter full-screen mode for the window.</div>
\r
407 Enter full-screen mode for the window. <div class="mdetail-params">
\r
408 <strong>Parameters:</strong>
\r
409 <ul><li><code>nonInteractive</code> : Boolean<div class="sub-desc">(optional) Boolean flag to allow the full screen window to be interactive or not. By default this is false.
411 var win = new Ext.air.NativeWindow({instance: Ext.air.NativeWindow.getRootWindow()});
412 win.fullscreen();</div></li> </ul>
\r
413 <strong>Returns:</strong>
\r
415 <li><code>void</code></li>
\r
421 <td class="msource">NativeWindow</td>
\r
423 <tr class="method-row alt expandable">
\r
424 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
426 <a id="Ext.air.NativeWindow-getCenterXY"></a>
\r
427 <b>getCenterXY</b>() : x: <div class="mdesc">
\r
428 <div class="short">Returns the x/y coordinates for centering the windw on the screen</div>
\r
430 Returns the x/y coordinates for centering the windw on the screen <div class="mdetail-params">
\r
431 <strong>Parameters:</strong>
\r
432 <ul><li>None.</li> </ul>
\r
433 <strong>Returns:</strong>
\r
435 <li><code>x:</code><div class="sub-desc">Number, y: Number}</div></li>
\r
441 <td class="msource">NativeWindow</td>
\r
443 <tr class="method-row expandable">
\r
444 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
446 <a id="Ext.air.NativeWindow-getNative"></a>
\r
447 <b>getNative</b>() : air.NativeWindow <div class="mdesc">
\r
448 <div class="short">Returns the air.NativeWindow instance</div>
\r
450 Returns the air.NativeWindow instance <div class="mdetail-params">
\r
451 <strong>Parameters:</strong>
\r
452 <ul><li>None.</li> </ul>
\r
453 <strong>Returns:</strong>
\r
455 <li><code>air.NativeWindow</code></li>
\r
461 <td class="msource">NativeWindow</td>
\r
463 <tr class="method-row inherited alt expandable">
\r
464 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
466 <a id="Ext.air.NativeWindow-hasListener"></a>
\r
467 <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
\r
468 <div class="short">Checks to see if this object has any listeners for a specified event</div>
\r
470 Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
\r
471 <strong>Parameters:</strong>
\r
472 <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
\r
473 <strong>Returns:</strong>
\r
475 <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
\r
481 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
\r
483 <tr class="method-row expandable">
\r
484 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
486 <a id="Ext.air.NativeWindow-hide"></a>
\r
487 <b>hide</b>() : void <div class="mdesc">
\r
488 <div class="short">Hides the window</div>
\r
490 Hides the window <div class="mdetail-params">
\r
491 <strong>Parameters:</strong>
\r
492 <ul><li>None.</li> </ul>
\r
493 <strong>Returns:</strong>
\r
495 <li><code>void</code></li>
\r
501 <td class="msource">NativeWindow</td>
\r
503 <tr class="method-row alt expandable">
\r
504 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
506 <a id="Ext.air.NativeWindow-isMaximized"></a>
\r
507 <b>isMaximized</b>() : Boolean <div class="mdesc">
\r
508 <div class="short">Returns true if this window is maximized</div>
\r
510 Returns true if this window is maximized <div class="mdetail-params">
\r
511 <strong>Parameters:</strong>
\r
512 <ul><li>None.</li> </ul>
\r
513 <strong>Returns:</strong>
\r
515 <li><code>Boolean</code></li>
\r
521 <td class="msource">NativeWindow</td>
\r
523 <tr class="method-row expandable">
\r
524 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
526 <a id="Ext.air.NativeWindow-isMinimized"></a>
\r
527 <b>isMinimized</b>() : Boolean <div class="mdesc">
\r
528 <div class="short">Returns true if this window is minimized</div>
\r
530 Returns true if this window is minimized <div class="mdetail-params">
\r
531 <strong>Parameters:</strong>
\r
532 <ul><li>None.</li> </ul>
\r
533 <strong>Returns:</strong>
\r
535 <li><code>Boolean</code></li>
\r
541 <td class="msource">NativeWindow</td>
\r
543 <tr class="method-row alt expandable">
\r
544 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
546 <a id="Ext.air.NativeWindow-moveTo"></a>
\r
547 <b>moveTo</b>( <code>Number x</code>, <code>Number y</code> ) : void <div class="mdesc">
\r
548 <div class="short">Moves the window to the passed xy and y coordinates</div>
\r
550 Moves the window to the passed xy and y coordinates <div class="mdetail-params">
\r
551 <strong>Parameters:</strong>
\r
552 <ul><li><code>x</code> : Number<div class="sub-desc"></div></li><li><code>y</code> : Number<div class="sub-desc"></div></li> </ul>
\r
553 <strong>Returns:</strong>
\r
555 <li><code>void</code></li>
\r
561 <td class="msource">NativeWindow</td>
\r
563 <tr class="method-row inherited expandable">
\r
564 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
566 <a id="Ext.air.NativeWindow-on"></a>
\r
567 <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">
\r
568 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
\r
570 Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
\r
571 <strong>Parameters:</strong>
\r
572 <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
573 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
\r
574 <strong>Returns:</strong>
\r
576 <li><code>void</code></li>
\r
582 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
\r
584 <tr class="method-row inherited alt expandable">
\r
585 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
587 <a id="Ext.air.NativeWindow-purgeListeners"></a>
\r
588 <b>purgeListeners</b>() : void <div class="mdesc">
\r
589 <div class="short">Removes all listeners for this object</div>
\r
591 Removes all listeners for this object <div class="mdetail-params">
\r
592 <strong>Parameters:</strong>
\r
593 <ul><li>None.</li> </ul>
\r
594 <strong>Returns:</strong>
\r
596 <li><code>void</code></li>
\r
602 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
\r
604 <tr class="method-row inherited expandable">
\r
605 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
607 <a id="Ext.air.NativeWindow-relayEvents"></a>
\r
608 <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc">
\r
609 <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>
\r
611 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params">
\r
612 <strong>Parameters:</strong>
\r
613 <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>
\r
614 <strong>Returns:</strong>
\r
616 <li><code>void</code></li>
\r
622 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>
\r
624 <tr class="method-row inherited alt expandable">
\r
625 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
627 <a id="Ext.air.NativeWindow-removeListener"></a>
\r
628 <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">
\r
629 <div class="short">Removes a listener</div>
\r
631 Removes a listener <div class="mdetail-params">
\r
632 <strong>Parameters:</strong>
\r
633 <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>
\r
634 <strong>Returns:</strong>
\r
636 <li><code>void</code></li>
\r
642 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
\r
644 <tr class="method-row expandable">
\r
645 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
647 <a id="Ext.air.NativeWindow-resize"></a>
\r
648 <b>resize</b>( <code>Number width</code>, <code>Number height</code> ) : void <div class="mdesc">
\r
649 <div class="short"></div>
\r
651 <div class="mdetail-params">
\r
652 <strong>Parameters:</strong>
\r
653 <ul><li><code>width</code> : Number<div class="sub-desc"></div></li><li><code>height</code> : Number<div class="sub-desc"></div></li> </ul>
\r
654 <strong>Returns:</strong>
\r
656 <li><code>void</code></li>
\r
662 <td class="msource">NativeWindow</td>
\r
664 <tr class="method-row inherited alt expandable">
\r
665 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
667 <a id="Ext.air.NativeWindow-resumeEvents"></a>
\r
668 <b>resumeEvents</b>() : void <div class="mdesc">
\r
669 <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>
\r
671 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">
\r
672 <strong>Parameters:</strong>
\r
673 <ul><li>None.</li> </ul>
\r
674 <strong>Returns:</strong>
\r
676 <li><code>void</code></li>
\r
682 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
\r
684 <tr class="method-row expandable">
\r
685 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
687 <a id="Ext.air.NativeWindow-show"></a>
\r
688 <b>show</b>() : void <div class="mdesc">
\r
689 <div class="short">Shows the window</div>
\r
691 Shows the window <div class="mdetail-params">
\r
692 <strong>Parameters:</strong>
\r
693 <ul><li>None.</li> </ul>
\r
694 <strong>Returns:</strong>
\r
696 <li><code>void</code></li>
\r
702 <td class="msource">NativeWindow</td>
\r
704 <tr class="method-row inherited alt expandable">
\r
705 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
707 <a id="Ext.air.NativeWindow-suspendEvents"></a>
\r
708 <b>suspendEvents</b>() : void <div class="mdesc">
\r
709 <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>
\r
711 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">
\r
712 <strong>Parameters:</strong>
\r
713 <ul><li>None.</li> </ul>
\r
714 <strong>Returns:</strong>
\r
716 <li><code>void</code></li>
\r
722 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
\r
724 <tr class="method-row inherited expandable">
\r
725 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
727 <a id="Ext.air.NativeWindow-un"></a>
\r
728 <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">
\r
729 <div class="short">Removes a listener (shorthand for removeListener)</div>
\r
731 Removes a listener (shorthand for removeListener) <div class="mdetail-params">
\r
732 <strong>Parameters:</strong>
\r
733 <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>
\r
734 <strong>Returns:</strong>
\r
736 <li><code>void</code></li>
\r
742 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
\r
745 <a id="Ext.air.NativeWindow-events"></a>
746 <h2>Public Events</h2>
747 <table cellspacing="0" class="member-table">
749 <th class="sig-header" colspan="2">Event</th>
750 <th class="msource-header">Defined By</th>
752 <tr class="event-row expandable">
\r
753 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
755 <a id="Ext.air.NativeWindow-close"></a>
\r
756 <b>close</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
757 <div class="short"></div>
\r
759 <div class="mdetail-params">
\r
760 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
761 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
766 <td class="msource">NativeWindow</td>
\r
768 <tr class="event-row alt expandable">
\r
769 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
771 <a id="Ext.air.NativeWindow-closing"></a>
\r
772 <b>closing</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
773 <div class="short"></div>
\r
775 <div class="mdetail-params">
\r
776 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
777 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
782 <td class="msource">NativeWindow</td>
\r
784 <tr class="event-row expandable">
\r
785 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
787 <a id="Ext.air.NativeWindow-displayStateChange"></a>
\r
788 <b>displayStateChange</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
789 <div class="short"></div>
\r
791 <div class="mdetail-params">
\r
792 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
793 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
798 <td class="msource">NativeWindow</td>
\r
800 <tr class="event-row alt expandable">
\r
801 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
803 <a id="Ext.air.NativeWindow-displayStateChanging"></a>
\r
804 <b>displayStateChanging</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
805 <div class="short"></div>
\r
807 <div class="mdetail-params">
\r
808 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
809 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
814 <td class="msource">NativeWindow</td>
\r
816 <tr class="event-row expandable">
\r
817 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
819 <a id="Ext.air.NativeWindow-move"></a>
\r
820 <b>move</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
821 <div class="short"></div>
\r
823 <div class="mdetail-params">
\r
824 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
825 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
830 <td class="msource">NativeWindow</td>
\r
832 <tr class="event-row alt expandable">
\r
833 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
835 <a id="Ext.air.NativeWindow-moving"></a>
\r
836 <b>moving</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
837 <div class="short"></div>
\r
839 <div class="mdetail-params">
\r
840 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
841 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
846 <td class="msource">NativeWindow</td>
\r
848 <tr class="event-row expandable">
\r
849 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
851 <a id="Ext.air.NativeWindow-resize"></a>
\r
852 <b>resize</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
853 <div class="short"></div>
\r
855 <div class="mdetail-params">
\r
856 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
857 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
862 <td class="msource">NativeWindow</td>
\r
864 <tr class="event-row alt expandable">
\r
865 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
867 <a id="Ext.air.NativeWindow-resizing"></a>
\r
868 <b>resizing</b> : ( <code>Object e</code> ) <div class="mdesc">
\r
869 <div class="short"></div>
\r
871 <div class="mdetail-params">
\r
872 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
873 <ul><li><code>e</code> : Object<div class="sub-desc">The air event object</div></li> </ul>
\r
878 <td class="msource">NativeWindow</td>
\r