|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.SystemUtilities
public final class SystemUtilities
Provides some commonly used system utility methods.
Method Summary | |
---|---|
static SystemUtilities |
getInstance()
Return the singleton instance. |
boolean |
isApplet()
Return true if this is running in an applet environment. |
boolean |
isApplication()
Return true if this is running in an application environment. |
boolean |
isJava3DAvailable()
Return true if Java 3D is available. |
boolean |
isLinuxPlatform()
Return true if this application is running on a Linux OS. |
boolean |
isMacPlatform()
Return true if this application is running on a Macintosh OS. |
boolean |
isSystemLAF()
Return true if this is using the system look and feel. |
boolean |
isWindowsPlatform()
Return true if this application is running on a Windows OS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SystemUtilities getInstance()
public boolean isApplet()
public boolean isApplication()
This is kind of a hack. The java runtime name property cannot be accessed from an applet environment due to security restrictions. A call for this property causes:
java.security.AccessControlException: access denied
(java.util.PropertyPermission java.runtime.name read)
to be thrown. This approach may fail if the user has monkeyed with their java.policy file and the security permissions therein.
public boolean isJava3DAvailable()
public boolean isLinuxPlatform()
public boolean isMacPlatform()
public boolean isSystemLAF()
public boolean isWindowsPlatform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |