|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.gui.util.WindowController
This class is used to track all the open windows. It is used to hide and show entire sets of windows at the same time. It can also be used to stop closing a program with work windows open. It can also be used to keep from opening the same sub-window twice.
This class is designed to allow the same window to be allowed twice as long as the identifier is different (thus the usage of a HashMap).
Retek Inc. Copyright (c) 2002
Method Summary | |
---|---|
static void |
addWindow(java.lang.String windowId,
java.awt.Window window)
Adds a window to the controller. |
static boolean |
hasOpenWindows()
Retrieves where or not sub-windows are currently open within the application. |
static void |
hide()
Hides all currently existing windows. |
static void |
removeWindow(java.lang.String windowId)
Removes a window from the controller. |
static void |
show()
Shows all currently existing windows. |
static boolean |
showWindow(java.lang.String windowId)
Displays a single window on the screen that was previous hidden. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void addWindow(java.lang.String windowId, java.awt.Window window)
windowId
- The window id to register as the window key.window
- The window to register.public static void removeWindow(java.lang.String windowId)
windowId
- The window id of the window to remove.public static boolean showWindow(java.lang.String windowId)
windowId
- The window id of the window to display.
public static void hide()
public static void show()
public static boolean hasOpenWindows()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |