qx.ui.window
Class Manager

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.util.manager.Object
              extended by qx.ui.window.Manager

public class Manager
extends Object

This singleton manages qx.ui.window.Windows


Constructor Summary
Manager()
           
 
Method Summary
 void _applyActiveWindow(java.lang.Object value, java.lang.Object old)
           
 void add(Window vWindow)
          Adds a Window instance to the manager and sets it as active window.
 java.lang.Object compareWindows(Window w1, Window w2)
          Compares two windows (used as sort method in remove(qx.ui.window.Window)).
 java.lang.Object getActiveWindow()
          Returns the (computed) value of the property activeWindow.
 void initActiveWindow(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property activeWindow with the default value defined by the class developer.
 void remove(Window vWindow)
          Removes a Window instance from the manager.
 void resetActiveWindow()
          Resets the user value of the property activeWindow.
 void setActiveWindow(java.lang.Object arg)
          Sets the user value of the property activeWindow.
 void update()
          Updates all registered window instances
 
Methods inherited from class qx.util.manager.Object
add, disableAll, enableAll, get, getAll, has, remove
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Manager

public Manager()
Method Detail

_applyActiveWindow

public void _applyActiveWindow(java.lang.Object value,
                               java.lang.Object old)

add

public void add(Window vWindow)

Adds a Window instance to the manager and sets it as active window.


compareWindows

public java.lang.Object compareWindows(Window w1,
                                       Window w2)

Compares two windows (used as sort method in remove(qx.ui.window.Window)). Sorts the windows by checking which of the given windows is active. If none of those two are active the zIndex are subtracted from each other to determine the sort order.


getActiveWindow

public java.lang.Object getActiveWindow()

Returns the (computed) value of the property activeWindow.

For further details take a look at the property definition: activeWindow.


initActiveWindow

public void initActiveWindow(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property activeWindow with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: activeWindow.


remove

public void remove(Window vWindow)

Removes a Window instance from the manager. If the current active window is the one which should be removed the existing windows are compared to determine the new active window (using the compareWindows(qx.ui.window.Window, qx.ui.window.Window) method).


resetActiveWindow

public void resetActiveWindow()

Resets the user value of the property activeWindow.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: activeWindow.


setActiveWindow

public void setActiveWindow(java.lang.Object arg)

Sets the user value of the property activeWindow.

For further details take a look at the property definition: activeWindow.


update

public void update()

Updates all registered window instances



Copyright © 2008 1&1. All Rights Reserved.