ObservableNativeObservable
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 b...
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.
|
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 applica...
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 ) : void Used to define events on this Observable
Used to define events on this Observable
Parameters:
|
Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void Appends an event handler to this component
Appends an event handler to this component
Parameters:
|
Observable | |
close() : void Closes the window
Closes the window
Parameters:
|
NativeWindow | |
fireEvent( String eventName , Object... args ) : Boolean Fires the specified event with the passed parameters (minus the event name).
Fires the specified event with the passed parameters (minus the event name).
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 ) : Boolean Checks 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 ) : void Moves 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 ] ) : void Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
Parameters:
|
Observable | |
purgeListeners() : void Removes all listeners for this object
Removes all listeners for this object
Parameters:
|
Observable | |
removeListener( String eventName , Function handler , [Object scope ] ) : void Removes a listener
Removes a listener
Parameters:
|
Observable | |
resize( Number width , Number height ) : void
Parameters:
|
NativeWindow | |
resumeEvents() : void Resume firing events. (see suspendEvents)
Resume firing events. (see suspendEvents)
Parameters:
|
Observable | |
show() : void Shows the window
Shows the window
Parameters:
|
NativeWindow | |
suspendEvents() : void Suspend the firing of all events. (see resumeEvents)
Suspend the firing of all events. (see resumeEvents)
Parameters:
|
Observable | |
un( String eventName , Function handler , [Object scope ] ) : void Removes a listener (shorthand for removeListener)
Removes a listener (shorthand for removeListener)
Parameters:
|
Observable |