|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Generic
ecologylab.appframework.EnvironmentGeneric
public class EnvironmentGeneric
| Field Summary | |
|---|---|
protected static ParsedURL |
configDir
|
static ParsedURL |
MAC_JAVA_PURL
Where to navigate to to download the lastest Java for the Macintosh. |
static ParsedURL |
SUN_JAVA_PURL
Where to navigate to to download the lastest Java. |
| Fields inherited from class ecologylab.generic.Generic |
|---|
SEP |
| Constructor Summary | |
|---|---|
EnvironmentGeneric()
|
|
| Method Summary | |
|---|---|
static ParsedURL |
codeBase()
|
static ParsedURL |
configDir()
The config directory, as located relative to the codebase, with the jar file and perhaps the sources. |
static ParsedURL |
configPath(java.lang.String relativePath)
Obtain a path relative to the configDir(). |
static ParsedURL |
docBase()
|
static ParsedURL |
downloadJavaPURL()
Checks what platform we're on, and returns a suitable PURL that you would navigate to, to download the current Java. |
static void |
exit(int code)
Called at the end of an invocation. |
static ParsedURL |
getRelativeOrAbsolute(java.lang.String webAddr,
java.lang.String errorDescriptor)
Uses an absolute URL, if the String parameter looks like that, or one that's relative to docBase, if it looks a relative URL. |
static ParsedURL |
getRelativeToCodeBase(java.lang.String relativeURLPath,
java.lang.String errorDescriptor)
Create ParsedURL using the codeBase(), and a relative url string. |
static ParsedURL |
getRelativeToDocBase(java.lang.String relativeURLPath,
java.lang.String errorDescriptor)
Create ParsedURL with doc base and relative url string. |
static boolean |
hasGoodJava()
Check to see if we're running on what we consider to be a decent, usable version of Java. |
static boolean |
hasXML()
|
static float |
javaVersion()
|
static java.lang.String |
javaVersionFull()
|
static void |
navigate(ParsedURL purl)
Open a document in a web browser. |
static void |
showDialogAndExit(java.lang.String msg,
int code)
|
static void |
status(java.lang.String msg)
|
| Methods inherited from class ecologylab.generic.Generic |
|---|
beep, booleanFromString, findEqual, findThreadGroup, findThreadGroup, findThreadGroup, getMaxMemory, main, narrowFloat, parseFloat, parseInt, raiseMaxPriority, raiseMaxPriority, raiseMaxPriority, raisePriority, round, setPriority, setPriority, showDialog, sleep, sleep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ParsedURL configDir
public static ParsedURL SUN_JAVA_PURL
public static ParsedURL MAC_JAVA_PURL
| Constructor Detail |
|---|
public EnvironmentGeneric()
| Method Detail |
|---|
public static ParsedURL codeBase()
public static ParsedURL configDir()
public static ParsedURL docBase()
public static ParsedURL configPath(java.lang.String relativePath)
relativePath -
public static float javaVersion()
public static boolean hasGoodJava()
public static java.lang.String javaVersionFull()
public static boolean hasXML()
public static ParsedURL downloadJavaPURL()
public static void status(java.lang.String msg)
public static void navigate(ParsedURL purl)
purl - The address of the web document.public static void exit(int code)
code - -- 0 for normal. other values are application specific.
public static void showDialogAndExit(java.lang.String msg,
int code)
public static ParsedURL getRelativeOrAbsolute(java.lang.String webAddr,
java.lang.String errorDescriptor)
public static ParsedURL getRelativeToDocBase(java.lang.String relativeURLPath,
java.lang.String errorDescriptor)
public static ParsedURL getRelativeToCodeBase(java.lang.String relativeURLPath,
java.lang.String errorDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||