public static enum GPanel.ClosingMode extends java.lang.Enum<GPanel.ClosingMode>
Enum Constant and Description |
---|
AskOnClose
AskOnClose -> Shows confirmation dialog asking for termination
|
ClearOnClose
ClearOnClose -> Clears the graphics content
|
DisposeOnClose
DisposeOnClose -> Closes the graphics window, but does not shutdown JRE
|
NothingOnClose
NothingOnClose -> Does nothing
|
ReleaseOnClose
ReleaseOnClose -> Like DisposeOnClose, but throws runtime exception
when graphics methods are called
|
TerminateOnClose
Terminating and shutting down JRE by System.exit(0)
|
Modifier and Type | Method and Description |
---|---|
static GPanel.ClosingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GPanel.ClosingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GPanel.ClosingMode TerminateOnClose
public static final GPanel.ClosingMode ClearOnClose
public static final GPanel.ClosingMode AskOnClose
public static final GPanel.ClosingMode DisposeOnClose
public static final GPanel.ClosingMode ReleaseOnClose
public static final GPanel.ClosingMode NothingOnClose
public static GPanel.ClosingMode[] values()
for (GPanel.ClosingMode c : GPanel.ClosingMode.values()) System.out.println(c);
public static GPanel.ClosingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null