ch.aplu.util
Enum Console.ClosingMode

java.lang.Object
  extended by java.lang.Enum<Console.ClosingMode>
      extended by ch.aplu.util.Console.ClosingMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Console.ClosingMode>
Enclosing class:
Console

public static enum Console.ClosingMode
extends java.lang.Enum<Console.ClosingMode>


Enum Constant Summary
AskOnClose
          AskOnClose -> Shows confirmation dialog asking for termination
ClearOnClose
          ClearOnClose -> Clears the console content
DisposeOnClose
          DisposeOnClose -> Closes the console window, but does not shutdown JRE
HideOnClose
          HideOnClose -> Hides the console, may be shown again by calling show()
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)
 
Method Summary
static Console.ClosingMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Console.ClosingMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TerminateOnClose

public static final Console.ClosingMode TerminateOnClose
Terminating and shutting down JRE by System.exit(0)


ClearOnClose

public static final Console.ClosingMode ClearOnClose
ClearOnClose -> Clears the console content


HideOnClose

public static final Console.ClosingMode HideOnClose
HideOnClose -> Hides the console, may be shown again by calling show()


AskOnClose

public static final Console.ClosingMode AskOnClose
AskOnClose -> Shows confirmation dialog asking for termination


DisposeOnClose

public static final Console.ClosingMode DisposeOnClose
DisposeOnClose -> Closes the console window, but does not shutdown JRE


ReleaseOnClose

public static final Console.ClosingMode ReleaseOnClose
ReleaseOnClose -> Like DisposeOnClose, but throws runtime exception when graphics methods are called


NothingOnClose

public static final Console.ClosingMode NothingOnClose
NothingOnClose -> Does nothing

Method Detail

values

public static Console.ClosingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Console.ClosingMode c : Console.ClosingMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Console.ClosingMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null