public enum RunMode extends Enum<RunMode>
Enum Constant and Description |
---|
APPLET |
CUSTOM |
STANDALONE |
WEBSTART |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT
Constants that indicates whether this GriffonApplication is running in the default running mode
|
static String |
KEY
Constant used to resolve the runMode via System.getProperty(RunMode.KEY)
|
Modifier and Type | Method and Description |
---|---|
static RunMode |
getCurrent()
Returns the current RunMode which is typically either STANDALONE, WEBSTART or APPLET.
|
String |
getName() |
static RunMode |
getRunMode(String shortName)
Returns the running mode for the given short name
|
static boolean |
isSystemSet() |
void |
setName(String name) |
static RunMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunMode STANDALONE
public static final RunMode WEBSTART
public static final RunMode APPLET
public static final RunMode CUSTOM
public static final String KEY
public static final String DEFAULT
public static RunMode[] values()
for (RunMode c : RunMode.values()) System.out.println(c);
public static RunMode 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 nullpublic static RunMode getCurrent()
public static boolean isSystemSet()
public static RunMode getRunMode(String shortName)
shortName
- The short namepublic String getName()
public void setName(String name)