|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.utils.SystemInfo
public final class SystemInfo
A utility class can detect OS system information.
Nested Class Summary | |
---|---|
static class |
SystemInfo.JavaVersion
|
Method Summary | |
---|---|
static String |
getCurrentDirectory()
Returns the user's home directory. |
static String |
getJavaClassVersion()
Returns the version of the java class we're using. |
static String |
getJavaVendor()
Returns the vendor for java we're using. |
static String |
getJavaVersion()
Returns the version of java we're using. |
static String |
getOS()
Returns the operating system. |
static String |
getOSArchitecture()
Returns the operating system architecture. |
static String |
getOSVersion()
Returns the operating system version. |
static boolean |
isAnyMac()
Returns whether or not the os is any Mac os. |
static boolean |
isCJKLocale()
Returns whether the default locale is one of the three language - Chinese, Japanese or Korean - also known as CJK. |
static boolean |
isCJKLocale(Locale locale)
Returns whether the locale is one of the three language - Chinese, Japanese or Korean - also known as CJK. |
static boolean |
isClassicWindows()
Gets the state of the flag which indicates if the old Windows look and feel should be rendered. |
static boolean |
isJdk13Above()
Returns whether or no the JDK version is 1.3 and above. |
static boolean |
isJdk142Above()
Returns whether or no the JDK version is 1.4.2 and above. |
static boolean |
isJdk14Above()
Returns whether or no the JDK version is 1.4 and above. |
static boolean |
isJdk15Above()
Returns whether or no the JDK version is 1.5 and above. |
static boolean |
isJdk6Above()
Returns whether or no the JDK version is 6 and above. |
static boolean |
isJdk6u10Above()
Returns whether or no the JDK version is 6u10 and above. |
static boolean |
isJdk6u14Above()
Returns whether or no the JDK version is 6u14 and above. |
static boolean |
isJdk6u25Above()
Returns whether or no the JDK version is 6u25 and above. |
static boolean |
isJdk7Above()
Returns whether or no the JDK version is 1.7 and above. |
static boolean |
isJdk8Above()
Returns whether or no the JDK version is 1.8 and above. |
static boolean |
isJdkVersion(double majorVersion,
int minorVersion,
int build)
Returns whether or not the JDK version is exactly the version you are expecting |
static boolean |
isJdkVersionAbove(double majorVersion,
int minorVersion,
int build)
Returns whether or not the JDK version is above the version, including the version, you are expecting |
static boolean |
isJdkVersionBelow(double majorVersion,
int minorVersion,
int build)
Returns whether or not the JDK version is below the version, including the version, you are expecting |
static boolean |
isLinux()
Returns whether or not the os is Linux. |
static boolean |
isMacClassic()
Returns whether or not the os is Mac 9.1 or earlier. |
static boolean |
isMacOSX()
Returns whether or not the os is Mac OSX. |
static boolean |
isSolaris()
Returns whether or not the os is Solaris. |
static boolean |
isUnix()
Returns whether or not the os is some version of Unix, defined here as only Solaris or Linux. |
static boolean |
isWindows()
Returns whether or not the os is some version of Windows. |
static boolean |
isWindows2003()
Returns whether or not the os is some version of Windows 2003. |
static boolean |
isWindows7()
Returns whether or not the os is some version of Windows 7. |
static boolean |
isWindows8()
Returns whether or not the os is some version of Windows 8. |
static boolean |
isWindows95()
Returns whether or not the os is some version of Windows 95. |
static boolean |
isWindows98()
Returns whether or not the os is some version of Windows 98. |
static boolean |
isWindowsNTor2000()
Returns whether or not the os is some version of Windows NT. |
static boolean |
isWindowsVista()
Returns whether or not the os is some version of Windows Vista. |
static boolean |
isWindowsVistaAbove()
Returns whether or not the os is some version of Windows Vista or Windows 7. |
static boolean |
isWindowsXP()
Returns whether or not the os is some version of Windows XP. |
static void |
setSupportsTray(boolean support)
Set supportTray to false in case dll is missing. |
static boolean |
supportsTray()
Returns true if this is Windows NT or Windows 2000 and hence can support a system tray feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getJavaVersion()
public static String getJavaVendor()
public static String getJavaClassVersion()
public static String getOS()
public static String getOSVersion()
public static String getOSArchitecture()
public static String getCurrentDirectory()
public static boolean supportsTray()
public static void setSupportsTray(boolean support)
support
- true or false.public static boolean isWindows()
public static boolean isClassicWindows()
public static boolean isWindowsNTor2000()
public static boolean isWindowsXP()
public static boolean isWindowsVista()
public static boolean isWindows7()
public static boolean isWindows8()
public static boolean isWindowsVistaAbove()
public static boolean isWindows95()
public static boolean isWindows98()
public static boolean isWindows2003()
public static boolean isMacClassic()
public static boolean isMacOSX()
public static boolean isAnyMac()
public static boolean isSolaris()
public static boolean isLinux()
public static boolean isUnix()
public static boolean isJdk13Above()
public static boolean isJdk142Above()
public static boolean isJdk14Above()
public static boolean isJdk15Above()
public static boolean isJdk6Above()
public static boolean isJdk6u10Above()
public static boolean isJdk6u14Above()
public static boolean isJdk6u25Above()
public static boolean isJdk7Above()
public static boolean isJdk8Above()
public static boolean isJdkVersion(double majorVersion, int minorVersion, int build)
majorVersion
- your intended major version for JDK6u10, it should be 1.6minorVersion
- your intended major version for JDK6u10, it should be 0build
- your intended major version for JDK6u10, it should be 10
public static boolean isJdkVersionAbove(double majorVersion, int minorVersion, int build)
majorVersion
- your intended major version for JDK6u10, it should be 1.6minorVersion
- your intended major version for JDK6u10, it should be 0build
- your intended major version for JDK6u10, it should be 10
public static boolean isJdkVersionBelow(double majorVersion, int minorVersion, int build)
majorVersion
- your intended major version for JDK6u10, it should be 1.6minorVersion
- your intended major version for JDK6u10, it should be 0build
- your intended major version for JDK6u10, it should be 10
public static boolean isCJKLocale()
public static boolean isCJKLocale(Locale locale)
locale
- the locale to be checked.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |