Skip to content
Reference > Classes

Window

Definition

Window var = .... ;

Extends

Extended By

None

Method Summary

Owner Name Return Type Description
Window bringToFront() Object Brings the window to the front of the desktop (in front of all other windows on the desktop).
Object getClassName() String Returns the string name of this object's class type.
Window getInnerPanel() Panel Returns the root panel.
Window getLocation() Rectangle Returns the inner location of the window in pixels (not including header and border).
Window getName() String Returns the name of the window.
Window getStatus() String Returns the status of the window, either: POPPEDOUT, MINIMIZED, MAXIMIZED, or FLOATING.
Window getType() String Returns the current type, aka the behaviour of this window. Either HIDDEN, MAXIMIZED_NO_HEADER or REGULAR.
Window maximize() Object Maximizes the window on the desktop.
Window minimize() Object Minimizes the window (hide it from the desktop).
Window popin() Object Restores the popped out window back to the browser's main window.
Window popout() Object Pops the window out of the browser's main window.
Window popout(position) Object Pops the window out of the browser's main window.
Window resetType() String Resets the type to this window's default type. Returns the default mode.
Window restore() Object Restore window to original dimensions.
Window setLocation(location) Object Sets the inner location of the window (not including header and border).
Window setType(type) Boolean Sets the current type, aka the behaviour of this window. Either HIDDEN, MAXIMIZED_NO_HEADER or REGULAR. Case sensitive.
Object toJson() String Returns a json representation of this object.

Method Definitions


bringToFront()

Object Window::bringToFront()

Description

Brings the window to the front of the desktop (in front of all other windows on the desktop).


getInnerPanel()

Panel Window::getInnerPanel()

Description

Returns the root panel.


getLocation()

Rectangle Window::getLocation()

Description

Returns the inner location of the window in pixels (not including header and border).


getName()

String Window::getName()

Description

Returns the name of the window.


getStatus()

String Window::getStatus()

Description

Returns the status of the window, either: POPPEDOUT, MINIMIZED, MAXIMIZED, or FLOATING.


getType()

String Window::getType()

Description

Returns the current type, aka the behaviour of this window. Either HIDDEN, MAXIMIZED_NO_HEADER or REGULAR.


maximize()

Object Window::maximize()

Description

Maximizes the window on the desktop.


minimize()

Object Window::minimize()

Description

Minimizes the window (hide it from the desktop).


popin()

Object Window::popin()

Description

Restores the popped out window back to the browser's main window.


popout()

Object Window::popout()

Description

Pops the window out of the browser's main window.


popout(position)

Object Window::popout(Rectangle position)

Description

Pops the window out of the browser's main window.

Parameter Definition

Name Type Description
position Rectangle  absolute position on the screen

resetType()

String Window::resetType()

Description

Resets the type to this window's default type. Returns the default mode.


restore()

Object Window::restore()

Description

Restore window to original dimensions.


setLocation(location)

Object Window::setLocation(Rectangle location)

Description

Sets the inner location of the window (not including header and border).

Parameter Definition

Name Type Description
location Rectangle  location in pixels

setType(type)

Boolean Window::setType(String type)

Description

Sets the current type, aka the behaviour of this window. Either HIDDEN, MAXIMIZED_NO_HEADER or REGULAR. Case sensitive.

Parameter Definition

Name Type Description
type String  Either HIDDEN, MAXIMIZED_NO_HEADER or REGULAR