Observable NativeObservable NativeWindow
Package: | Ext.air |
Defined In: | NativeWindow.js |
Class: | NativeWindow |
Extends: | NativeObservable |
Config Options | Defined By | |
---|---|---|
chrome : String The native window chrome (defaults to 'standard', can also be 'none'). | NativeWindow | |
height : Number | NativeWindow | |
instance : air.NativeWindow The native window instance to wrap. If undefined, a new window will be created. | NativeWindow | |
listeners : Object A config object containing one or more event handlers to be added to this
object during initialization. This should ... 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 addListener example for attaching multiple handlers at once. DOM events from ExtJs Components While some ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this
is usually only done when extra value can be added. For example the DataView's
| Observable | |
maximizable : Boolean | NativeWindow | |
minimizable : Boolean | NativeWindow | |
minimizeToTray : Boolean True to enable minimizing to the system tray. Note: this should only be applied
to the primary window in your applic... 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. | NativeWindow | |
resizable : Boolean | NativeWindow | |
transparent : Boolean | NativeWindow | |
trayIcon : String The icon to display when minimized in the system tray | NativeWindow | |
trayMenu : NativeMenu Menu to display when the tray icon is right clicked | NativeWindow | |
trayTip : String Tooltip for the tray icon | NativeWindow | |
type : String The native window type - normal, utility or lightweight. (defaults to normal) | NativeWindow | |
width : Number | NativeWindow |
Property | Defined By | |
---|---|---|
id : String | NativeWindow |
Method | Defined By | |
---|---|---|
NativeWindow( Object config )
Parameters:
| NativeWindow | |
NativeWindow.getRootHtmlWindow()
:
Window <static> Returns the javascript "window" object of the first opened window in your application <static> Returns the javascript "window" object of the first opened window in your application Parameters:
| NativeWindow | |
NativeWindow.getRootWindow()
:
air.NativeWindow <static> Returns the first opened window in your application <static> Returns the first opened window in your application Parameters:
| NativeWindow | |
activate()
:
void Shows and activates the window Shows and activates the window Parameters:
| NativeWindow | |
addEvents( Object object )
:
voidUsed to define events on this Observable Used to define events on this Observable Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to this object. Appends an event handler to this object. Parameters:
| Observable | |
close()
:
void Closes the window Closes the window Parameters:
| NativeWindow | |
enableBubble( Object events )
:
voidUsed to enable bubbling of events Used to enable bubbling of events Parameters:
| Observable | |
fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name). An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) by calling enableBubble. Parameters:
| Observable | |
getCenterXY()
:
x: Returns the x/y coordinates for centering the windw on the screen Returns the x/y coordinates for centering the windw on the screen Parameters:
| NativeWindow | |
getNative()
:
air.NativeWindow Returns the air.NativeWindow instance Returns the air.NativeWindow instance Parameters:
| NativeWindow | |
hasListener( String eventName )
:
BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |
hide()
:
void Hides the window Hides the window Parameters:
| NativeWindow | |
isMaximized()
:
Boolean Returns true if this window is maximized Returns true if this window is maximized Parameters:
| NativeWindow | |
isMinimized()
:
Boolean Returns true if this window is minimized Returns true if this window is minimized Parameters:
| NativeWindow | |
moveTo( Number x , Number y )
:
voidMoves the window to the passed xy and y coordinates Moves the window to the passed xy and y coordinates Parameters:
| NativeWindow | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:
| Observable | |
purgeListeners()
:
void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |
relayEvents( Object o , Array events )
:
voidRelays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. Parameters:
| Observable | |
removeListener( String eventName , Function handler , [Object scope ] )
:
voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |
resize( Number width , Number height )
:
voidParameters:
| NativeWindow | |
resumeEvents()
:
void Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
event... Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |
show()
:
void Shows the window Shows the window Parameters:
| NativeWindow | |
suspendEvents( Boolean queueSuspended )
:
voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:
| Observable | |
un( String eventName , Function handler , [Object scope ] )
:
voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable |
Event | Defined By | |
---|---|---|
close :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
closing :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
displayStateChange :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
displayStateChanging :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
move :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
moving :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
resize :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow | |
resizing :
( Object e )
Listeners will be called with the following arguments:
| NativeWindow |