| Main class to handle windows inside a web page. |
| |
| window theme, uses the window manager theme as default |
| window shadow theme, uses the window manager one as default Only useful if shadow options is true, see UI.Shadow for details |
| id ot the window, generated by default |
| window manager that manages this window, uses UI.defaultWM as default |
| |
| |
| draw wires around window when dragged, false by default |
| Function used to show the window, default is Element.show |
| Function used to hide the window, default is Element.hide. |
| uses superflous effects when resizing or moving window. |
| draw shadow around the window, default is false |
| When set to true, a click on an blurred window content activates it, default is true |
| Window method name as string, or false to disable close button Default is ‘destroy’ |
| Window method name as string, or false to disable minimize button Default is ‘toggleFold’ |
| Window method name as string, or false to disable maximize button Default is ‘toggleMaximize’ |
| |
| DOM id of the window’s element |
| DOM element containing the window |
| Window manager that manages the window |
| |
| |
| |
| true if window is visible |
| true if window is focused |
| |
| true if window is maximized |
| List of events fired by a window |
| Fired after creating the window |
| Fired after destroying the window |
| Fired when showing a window |
| Fired after showing effect |
| Fired when hiding a window |
| Fired after hiding effect |
| Fired after focusing the window |
| Fired after bluring the window |
| Fired after maximizing the window |
| Fired after restoring the window from its maximized state |
| Fired after unfolding the window |
| Fired after folding the window |
| Fired when window altitude has changed (z-index) |
| Fired when window size has changed |
| Fired when window position has changed |
| Fired when user has started a moving a window, position:changed are then fired continously |
| Fired when user has finished moving a window |
| Fired when user has started resizing window, size:changed are then fired continuously |
| Fired when user has finished resizing window |
| |
| Constructor, should not be called directly, it’s called by new operator (new Window()) The window is not open and nothing has been added to the DOM yet |
| Destructor, closes window, cleans up DOM and memory |
| |
| Fires a window custom event automatically namespaced in “window:” (see Prototype custom events). |
| Observe a window event with a handler function automatically bound to the window |
| |
| Opens the window (appends it to the DOM) |
| Hides the window, (removes it from the DOM) |
| Brings window to the front and sets focus on it |
| Brings window to the front (but does not set focus on it) |
| Sends window to the back (without changing its focus) |
| Focuses the window (without bringing window to the front) |
| Blurs the window (without changing windows order) |
| Maximizes window inside its viewport (managed by WindowManager) Makes window take full size of its viewport |
| Restores a maximized window to its initial size |
| Maximizes/Restores window inside it’s viewport (managed by WindowManager) |
| Adapts window size to fit its content |
| |
| |
| Folds/Unfolds window content |
| Sets window header, equivalent to this.header.update(...) |
| Sets window content, equivalent to this.content.update(...) |
| Sets window footer, equivalent to this.footer.update(...) |
| Sets window content using Ajax request |
| |
| Returns top/left position of a window (in pixels) |
| Sets top/left position of a window (in pixels) |
| Centers the window within its viewport |
| Returns window width/height dimensions (in pixels) |
| Sets window width/height dimensions (in pixels), fires size:changed |
| Returns window bounds (in pixels) |
| Sets window bounds (in pixels), fires position:changed and size:changed |
| Returns window altitude, an integer between 0 and the number of windows, the higher the altitude number - the higher the window position. |
| Sets window altitude, fires ‘altitude:changed’ if altitude was changed |
| |
| |
| |
| Returns window theme name |
| |
| Returns shadow theme name |