public final class Spark
extends java.lang.Object
Spark
class provides some simple static calls to retrieve this information.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENTS |
Constructor and Description |
---|
Spark()
Private constructor that invokes the LoginDialog and
the Spark Main Application.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
disableUpdatesOnCustom() |
static java.lang.String |
getArgumentValue(java.lang.String argumentName)
Returns the value associated with a passed in argument.
|
static java.io.File |
getBinDirectory()
Returns the bin directory of the Spark install.
|
static java.io.File |
getLogDirectory()
Returns the log directory.
|
static java.io.File |
getPluginDirectory()
Returns the plugins directory of the Spark install.
|
static java.io.File |
getResourceDirectory()
Returns the resource directory of the Spark install.
|
static java.lang.String |
getSparkUserHome()
Returns the Spark directory for the current user (user.home).
|
static java.lang.String |
getUserConf()
Keep track of the users configuration directory.
|
static java.lang.String |
getUserHome()
Return the base user home.
|
static void |
installBaseUIProperties()
Sets Spark specific colors
|
static boolean |
isLinux()
Return if we are running on Linux.
|
static boolean |
isMac()
Return if we are running on a mac.
|
static boolean |
isVista()
Returns true if Spark is running on vista.
|
static boolean |
isWindows()
Return if we are running on windows.
|
static void |
setApplicationFont(java.awt.Font f) |
void |
setArgument(java.lang.String arguments) |
void |
startup() |
public Spark()
public void startup()
public static boolean isWindows()
public static boolean isVista()
public static boolean isMac()
public static java.lang.String getArgumentValue(java.lang.String argumentName)
String value = Spark.getArgumentValue("username");
argumentName
- the name of the argument to retrieve.public void setArgument(java.lang.String arguments)
public static java.io.File getBinDirectory()
public static java.io.File getResourceDirectory()
public static java.io.File getPluginDirectory()
public static java.io.File getLogDirectory()
public static boolean isLinux()
public static java.lang.String getUserConf()
public static java.lang.String getSparkUserHome()
public static java.lang.String getUserHome()
public static boolean disableUpdatesOnCustom()
public static void setApplicationFont(java.awt.Font f)
public static void installBaseUIProperties()