com.extjs.gxt.ui.client.widget
Class WindowManager

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.WindowManager
All Implemented Interfaces:
Observable

public class WindowManager
extends BaseObservable

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


Constructor Summary
WindowManager()
           
 
Method Summary
 boolean bringToFront(Window window)
          Brings the specified window to the front of any other active windows.
static WindowManager get()
          Returns the singleton instance.
 Window get(java.lang.String id)
          Gets a registered window by id.
 Window getActive()
          Gets the currently-active window in the group.
 void hideAll()
          Hides all windows that are registered to this WindowManager.
 Window sendToBack(Window window)
          Sends the specified window to the back of other active windows.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowManager

public WindowManager()
Method Detail

get

public static WindowManager get()
Returns the singleton instance.

Returns:
the window manager

bringToFront

public boolean bringToFront(Window window)
Brings the specified window to the front of any other active windows.

Parameters:
window - the window return True if the dialog was brought to the front, else false if it was already in front

get

public Window get(java.lang.String id)
Gets a registered window by id.

Parameters:
id - the window id
Returns:
the window

getActive

public Window getActive()
Gets the currently-active window in the group.

Returns:
the active window

hideAll

public void hideAll()
Hides all windows that are registered to this WindowManager.


sendToBack

public Window sendToBack(Window window)
Sends the specified window to the back of other active windows.

Parameters:
window - the window
Returns:
the window