Class adf.WindowManager
Defined in: WindowManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.WindowManager(id, formField)
The window manager is used to manage a collection of adf.Window objects.
|
Field Attributes | Field Name and Description |
---|---|
CSS z-index of window that is in the background.
|
|
Form field which is used to store serialized state of windows
|
|
CSS z-index of window that is in the foreground.
|
|
Collection of windows managed by this object
|
|
Names of all windoes managed by this object
|
Method Attributes | Method Name and Description |
---|---|
addWindow(win, resize)
Add window to this window manager
|
|
Get serialized state of window from adf.WindowManager#formField.value
|
|
loadProperties(winId, resize)
Load and update window identified by argument windowId from serilaized state.
|
|
makeAllVisible(w, h)
Show all windows.
|
|
restoreProperties(resize)
Restore windows from serialized state.
|
|
Serialize state of windows as string in
adf.WindoManager#formField
|
|
setProperties(props)
Set state of windows from serialized state
|
|
toFront(winId)
Bring the window with argument id to front
|
Class Detail
adf.WindowManager(id, formField)
The window manager is used to manage a collection of adf.Window objects. The window manager object can be used to serialize and restore the state of multiple adf.Window objects
Creates new window manager object to manage one or more windows
- Parameters:
- {String} id
- {HTMLInputElement} formField
Field Detail
{Number}
backZIndex
CSS z-index of window that is in the background.
- Default Value:
- 110
{HTMLInputElement}
formField
Form field which is used to store serialized state of windows
{Number}
frontZIndex
CSS z-index of window that is in the foreground.
- Default Value:
- 111
{Array}
windowIds
Collection of windows managed by this object
{Array}
windows
Names of all windoes managed by this object
Method Detail
addWindow(win, resize)
Add window to this window manager
- Parameters:
- {adf.Window} win
- {boolean} resize
getProperties()
Get serialized state of window from adf.WindowManager#formField.value
loadProperties(winId, resize)
Load and update window identified by argument windowId from serilaized state. Optionally force resize of window
- Parameters:
- winId
- resize
makeAllVisible(w, h)
Show all windows. If any window is outside current bounds, move the window within the argument width and height
- Parameters:
- {Number} w
- {Number} h
restoreProperties(resize)
Restore windows from serialized state. Optionally force resize of windows based on serilized state
- Parameters:
- resize
saveProperties()
Serialize state of windows as string in
adf.WindoManager#formField
setProperties(props)
Set state of windows from serialized state
- Parameters:
- props
toFront(winId)
Bring the window with argument id to front
- Parameters:
- {String} winId