public static enum Window.LifecycleState extends Enum<Window.LifecycleState>
Represents the current state of the Window. Windows start out OPEN
,
when the current window's document is being unloaded, they move to the UNLOADING
state and then either move back to the OPEN
state if the Window's content
is populated with a new document from the same application, or to the CLOSED
state if it is not.
This represents the framework's best guess at the current status of the Window.
Enum Constant and Description |
---|
CLOSED
The Window is believed to be closed, either because the window was explicitly closed
or because the window is suspected to have been closed
|
OPEN
The Window is currently open
|
UNLOADING
The Window is being unloaded
|
Modifier and Type | Method and Description |
---|---|
static Window.LifecycleState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Window.LifecycleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Window.LifecycleState OPEN
public static final Window.LifecycleState UNLOADING
public static final Window.LifecycleState CLOSED
public static Window.LifecycleState[] values()
for (Window.LifecycleState c : Window.LifecycleState.values()) System.out.println(c);
public static Window.LifecycleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.