Method Summary |
|
public static void | addWindowCloseListener(WindowCloseListener listener) Adds a listener to receive window closing events. |
public static void | addWindowResizeListener(WindowResizeListener listener) Adds a listener to receive window resize events. |
native public static void | alert(String msg) Displays a message in a modal dialog box. |
native public static boolean | confirm(String msg) Displays a message in a modal dialog box, along with the standard 'OK' and
'Cancel' buttons.
Parameters: msg - the message to be displayed. |
native public static void | enableScrolling(boolean enable) Use this method to explicitly disable the window's scrollbars. |
public static int | getClientHeight() Gets the height of the browser window's client area excluding the
scroll bar. |
public static int | getClientWidth() Gets the width of the browser window's client area excluding the
vertical scroll bar. |
native public static int | getScrollLeft() Gets the window's scroll left. |
native public static int | getScrollTop() Get the window's scroll top. |
native public static String | getTitle() Gets the browser window's current title. |
static void | onClosed() |
static String | onClosing() |
static void | onResize() |
native public static void | open(String url, String name, String features) Opens a new browser window. |
native public static void | print() Prints the document in the window, as if the user had issued a "Print"
command. |
native public static String | prompt(String msg, String initialValue) Displays a request for information in a modal dialog box, along with the
standard 'OK' and 'Cancel' buttons. |
public static void | removeWindowCloseListener(WindowCloseListener listener) Removes a window closing listener. |
public static void | removeWindowResizeListener(WindowResizeListener listener) Removes a window resize listener. |
native public static void | setMargin(String size) Sets the size of the margins used within the window's client area. |
native public static void | setStatus(String status) Sets the status text for the window. |
native public static void | setTitle(String title) Sets the browser window's title. |