Properties Methods Events Direct Link

# Class Ext.WindowGroup

Package: | Ext
Defined In: | WindowManager.js
Class: | WindowGroup
Subclasses: | WindowMgr
Extends: | Object

An object that manages a group of Ext.Window instances and provides z-order management and window activation behavior.

## Public Properties

Property | Defined By
--- | ---
| zseed : Number The z-index value The starting z-index for windows in this WindowGroup (defaults to 9000) | WindowGroup

## Public Methods

Method | Defined By
--- | ---
| WindowGroup() Parameters: None. Returns: void | WindowGroup
| bringToFront( `String/Object win` ) : Boolean Brings the specified window to the front of any other active windows in this WindowGroup. Brings the specified window to the front of any other active windows in this WindowGroup. Parameters: `win` : String/Object The id of the window or a Ext.Window instance Returns: `Boolean` True if the dialog was brought to the front, else false if it was already in front | WindowGroup
| each( `Function fn`, [`Object scope`] ) : void Executes the specified function once for every window in this WindowGroup, passing each window as the only parameter.... Executes the specified function once for every window in this WindowGroup, passing each window as the only parameter. Returning false from the function will stop the iteration. Parameters: `fn` : Function The function to execute for each item `scope` : Object (optional) The scope (`this` reference) in which the function is executed. Defaults to the current Window in the iteration. Returns: void | WindowGroup
| get( `String/Object id` ) : Ext.Window Gets a registered window by id. Gets a registered window by id. Parameters: `id` : String/Object The id of the window or a Ext.Window instance Returns: `Ext.Window` | WindowGroup
| getActive() : Ext.Window Gets the currently-active window in this WindowGroup. Gets the currently-active window in this WindowGroup. Parameters: None. Returns: `Ext.Window` The active window | WindowGroup
| getBy( `Function fn`, [`Object scope`] ) : Array Returns zero or more windows in this WindowGroup using the custom search function passed to this method. The function... Returns zero or more windows in this WindowGroup using the custom search function passed to this method. The function should accept a single Ext.Window reference as its only argument and should return true if the window matches the search criteria, otherwise it should return false. Parameters: `fn` : Function The search function `scope` : Object (optional) The scope (`this` reference) in which the function is executed. Defaults to the Window being tested. that gets passed to the function if not specified) Returns: `Array` An array of zero or more matching windows | WindowGroup
| hideAll() : void Hides all windows in this WindowGroup. Hides all windows in this WindowGroup. Parameters: None. Returns: void | WindowGroup
| register( `Window win` ) : void Registers a Window with this WindowManager. This should not need to be called under normal circumstances. Windows are... Registers a Window with this WindowManager. This should not need to be called under normal circumstances. Windows are automatically registered with a manager at construction time. Where this may be useful is moving Windows between two WindowManagers. For example, to bring the Ext.MessageBox dialog under the same manager as the Desktop's WindowManager in the desktop sample app: `
    var msgWin = Ext.MessageBox.getDialog();
    MyDesktop.getDesktop().getManager().register(msgWin);
` Parameters: `win` : Window The Window to register. Returns: void | WindowGroup
| sendToBack( `String/Object win` ) : Ext.Window Sends the specified window to the back of other active windows in this WindowGroup. Sends the specified window to the back of other active windows in this WindowGroup. Parameters: `win` : String/Object The id of the window or a Ext.Window instance Returns: `Ext.Window` The window | WindowGroup
| unregister( `Window win` ) : void Unregisters a Window from this WindowManager. This should not need to be called. Windows are automatically unregister... Unregisters a Window from this WindowManager. This should not need to be called. Windows are automatically unregistered upon destruction. See register. Parameters: `win` : Window The Window to unregister. Returns: void | WindowGroup

## Public Events

This class has no public events.