|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.util.AppEnvironment
public class AppEnvironment
Environment for an application; essentially a global object used to define high-level app behavior.
| Constructor Summary | |
|---|---|
AppEnvironment()
|
|
| Method Summary | |
|---|---|
void |
addExitCommand(java.lang.Runnable command)
Add an exit command. |
void |
disableSystemExit()
|
void |
enableSystemExit()
|
void |
exitApp()
Exit the application. |
void |
exitAppWithError()
Exit the application. |
java.lang.String |
getBuildNumber()
Returns the build number (a six-digit date plus alphabetic sequence). |
java.lang.String |
getCopyrightNotice()
Returns a Partner copyright notice. |
java.lang.Runnable |
getExitMethod()
|
java.lang.String |
getJREDescription()
Returns a description of the current JRE. |
boolean |
getLastAppExitedWithError()
|
java.lang.String |
getOSDescription()
Returns a description of the current operating system. |
java.lang.String |
getPhoneNumber()
Returns the Partner phone number. |
boolean |
getUseHomeDir()
|
java.lang.String |
getWebsite()
Returns a Partner web URL. |
boolean |
isGUI()
|
boolean |
isGUILog()
|
boolean |
isLinux()
|
boolean |
isReadOnly()
If true, app is running in a read-only environment (CDROM or demo mode). |
PropMap |
processCommandLine(java.lang.String syntaxPath,
java.lang.String[] args)
Get command-line arguments as a PropMap. |
void |
setExitMethod(java.lang.Runnable exiter)
Sets the object used to exit an application. |
void |
setGUI(boolean tizit)
|
void |
setGUILog(boolean tizit)
|
void |
setReadOnly(boolean tizit)
|
void |
setUserHomeDir(boolean tizit)
|
static AppEnvironment |
singleton()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppEnvironment()
| Method Detail |
|---|
public static AppEnvironment singleton()
public void addExitCommand(java.lang.Runnable command)
public void exitApp()
public void exitAppWithError()
public PropMap processCommandLine(java.lang.String syntaxPath,
java.lang.String[] args)
public void disableSystemExit()
public void enableSystemExit()
public boolean isReadOnly()
public void setReadOnly(boolean tizit)
public void setExitMethod(java.lang.Runnable exiter)
public java.lang.Runnable getExitMethod()
public java.lang.String getBuildNumber()
public java.lang.String getJREDescription()
public java.lang.String getOSDescription()
public boolean isLinux()
public java.lang.String getCopyrightNotice()
public java.lang.String getPhoneNumber()
public java.lang.String getWebsite()
public boolean isGUI()
public boolean getLastAppExitedWithError()
public void setGUI(boolean tizit)
public void setGUILog(boolean tizit)
public boolean isGUILog()
public boolean getUseHomeDir()
public void setUserHomeDir(boolean tizit)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||