|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--danger.ui.WindowManager
The WindowManager is completely opaque to applications. Apps will interact with it via the Window class and never directly. The WindowManager maintains a doubly-linked, circular list of Shadows, one for each running Application and each visible Window in the system. Applications obtain their Shadow at construction time and are introduced to the list at that moment. Windows obtain their Shadow at construction time, but are only added to the list when shown. When a Window is Hidden, its Shadow is removed from the list. The WindowManager keeps track of the current foreground app, and the invalid region for every visible Window. It is responsible for generating EVENT_WINDOW_PAINT events when a window should redraw to clean the invalid region. It is the only entity allowed to
| Constructor Summary | |
WindowManager()
|
|
| Method Summary | |
static void |
attach(Application a)
Registers an app with the window manager |
static void |
detach(Application a)
Used during app unload to completely detach an app |
static void |
dumpWindowInfo(boolean activeOnly)
|
static Window |
getFrontWindow(Application app)
|
static void |
installSystemApp(Application app)
System Use Only. |
static void |
installTitleWindow(Window w)
System Use Only. |
static boolean |
isApplicationActive(Application app)
|
static boolean |
isScreenWindowActive(ScreenWindow w)
|
static boolean |
isWindowActive(Window inWindow)
Returns true if there are no other window in front of this one, including system windows. |
static void |
noLongerUnresponsive(Application app)
Called from Window as a result of catching the APPLICATION_NO_LONGER_UNRESPONSIVE event. |
static void |
show(Application app)
Brings the applications windows above other app windows (but not system windows) and sets it as the active app |
static void |
titleBarNoLongerUnresponsive()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WindowManager()
| Method Detail |
public static void attach(Application a)
public static void detach(Application a)
public static void show(Application app)
public static boolean isWindowActive(Window inWindow)
public static boolean isScreenWindowActive(ScreenWindow w)
public static boolean isApplicationActive(Application app)
public static void installTitleWindow(Window w)
public static void installSystemApp(Application app)
public static Window getFrontWindow(Application app)
public static void dumpWindowInfo(boolean activeOnly)
public static void noLongerUnresponsive(Application app)
public static void titleBarNoLongerUnresponsive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||