public static enum WindowClosingProtocol.WindowClosingMode extends Enum<WindowClosingProtocol.WindowClosingMode>
Enum Constant and Description |
---|
DISPOSE_ON_CLOSE
Dispose resources on native window close operation.
This is the default behavior in case no underlying toolkit defines otherwise. |
DO_NOTHING_ON_CLOSE
Do nothing on native window close operation.
This is the default behavior within an AWT environment. |
Modifier and Type | Method and Description |
---|---|
static WindowClosingProtocol.WindowClosingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WindowClosingProtocol.WindowClosingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WindowClosingProtocol.WindowClosingMode DO_NOTHING_ON_CLOSE
public static final WindowClosingProtocol.WindowClosingMode DISPOSE_ON_CLOSE
public static WindowClosingProtocol.WindowClosingMode[] values()
for (WindowClosingProtocol.WindowClosingMode c : WindowClosingProtocol.WindowClosingMode.values()) System.out.println(c);
public static WindowClosingProtocol.WindowClosingMode 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 2010 JogAmp Community.