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 activateNext(Window window)
          Activates the next window in the access stack.
 boolean activatePrevious(Window window)
          Activates the previous window in the access stack.
 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.
 java.util.Stack<Window> getStack()
          Returns the ordered windows.
 java.util.List<Window> getWindows()
          Returns the visible windows.
 void hideAll()
          Hides all windows that are registered to this WindowManager.
 void register(Window window)
           
 Window sendToBack(Window window)
          Sends the specified window to the back of other active windows.
 void unregister(Window window)
           
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

activateNext

public boolean activateNext(Window window)
Activates the next window in the access stack.

Parameters:
window - the reference window
Returns:
true if the next window exists

activatePrevious

public boolean activatePrevious(Window window)
Activates the previous window in the access stack.

Parameters:
window - the reference window
Returns:
true if a previous window exists

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

getStack

public java.util.Stack<Window> getStack()
Returns the ordered windows.

Returns:
the windows

getWindows

public java.util.List<Window> getWindows()
Returns the visible windows.

Returns:
the windows

hideAll

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


register

public void register(Window window)

sendToBack

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

Parameters:
window - the window
Returns:
the window

unregister

public void unregister(Window window)