|
Griffon 0.9.5-rc2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum
griffon.util.RunMode
public enum RunMode extends Enum
An enum that represents the current running mode.
Enum Constant Summary | |
---|---|
APPLET
|
|
CUSTOM
|
|
STANDALONE
|
|
WEBSTART
|
Field Summary | |
---|---|
private static String |
APPLET_RUNMODE_SHORT_NAME
|
static String |
DEFAULT
Constants that indicates whether this GriffonApplication is running in the default running mode |
static String |
KEY
An enum that represents the current running mode. |
private static String |
STANDALONE_RUNMODE_SHORT_NAME
|
private static String |
WEBSTART_RUNMODE_SHORT_NAME
|
private static HashMap |
modeNameMappings
|
private String |
name
|
Method Summary | |
---|---|
static RunMode
|
getCurrent()
Returns the current RunMode which is typically either STANDALONE, WEBSTART or APPLET. |
static RunMode
|
getCurrentRunMode()
@see #getCurrent() |
String
|
getName()
@return The name of the running mode |
static RunMode
|
getRunMode(String shortName)
Returns the running mode for the given short name |
private static boolean
|
isBlank(String value)
|
static boolean
|
isSystemSet()
@return Return true if the running mode has been set as a System property |
void
|
setName(String name)
|
RunMode
|
valueOf(String name)
Returns the enum constant of this type with the specified name. |
RunMode[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum | |
---|---|
name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Enum Constant Detail |
---|
RunMode APPLET
RunMode CUSTOM
RunMode STANDALONE
RunMode WEBSTART
Field Detail |
---|
private static final String APPLET_RUNMODE_SHORT_NAME
public static final String DEFAULT
public static final String KEY
private static final String STANDALONE_RUNMODE_SHORT_NAME
private static final String WEBSTART_RUNMODE_SHORT_NAME
private static HashMap modeNameMappings
private String name
Method Detail |
---|
public static RunMode getCurrent()
public static RunMode getCurrentRunMode()
public String getName()
public static RunMode getRunMode(String shortName)
shortName
- The short name
private static boolean isBlank(String value)
public static boolean isSystemSet()
public void setName(String name)
RunMode valueOf(String name)
RunMode[] values()
Groovy Documentation