Class LookUtils
- java.lang.Object
-
- org.pushingpixels.radiance.common.internal.contrib.jgoodies.looks.LookUtils
-
public final class LookUtils extends java.lang.ObjectProvides convenience behavior used by the JGoodies Looks.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanIS_OS_MACTrue if this is the Mac OS X.static booleanIS_OS_MAC_CATALINA_OR_LATERTrue if this is Mac Catalina or laterstatic booleanIS_OS_MAC_EL_CAPITAN_OR_LATERTrue if this is Mac El Capitan or laterstatic booleanIS_OS_MAC_MOJAVE_OR_LATERTrue if this is Mac Mojave or laterstatic booleanIS_OS_MAC_YOSEMITETrue if this is Mac Yosemite.static booleanIS_OS_WINDOWSTrue if this is Windows.static booleanIS_OS_WINDOWS_95True if this is Windows 95.static booleanIS_OS_WINDOWS_98True if this is Windows 98.static booleanIS_OS_WINDOWS_METrue if this is Windows ME.static booleanIS_OS_WINDOWS_NTTrue if this is Windows NT.private static java.lang.StringOS_NAMETheos.nameSystem Property.private static java.lang.StringOS_VERSIONTheos.versionSystem Property.
-
Constructor Summary
Constructors Modifier Constructor Description privateLookUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetSystemProperty(java.lang.String key)Tries to look up the System property for the given key.private static booleanstartsWith(java.lang.String str, java.lang.String prefix)
-
-
-
Field Detail
-
OS_NAME
private static final java.lang.String OS_NAME
Theos.nameSystem Property. Operating system name.Defaults to
nullif the runtime does not have security access to read this property or the property does not exist.
-
OS_VERSION
private static final java.lang.String OS_VERSION
Theos.versionSystem Property. Operating system version.Defaults to
nullif the runtime does not have security access to read this property or the property does not exist.
-
IS_OS_MAC
public static final boolean IS_OS_MAC
True if this is the Mac OS X.
-
IS_OS_WINDOWS
public static final boolean IS_OS_WINDOWS
True if this is Windows.
-
IS_OS_WINDOWS_95
public static final boolean IS_OS_WINDOWS_95
True if this is Windows 95.- Since:
- 2.0
-
IS_OS_WINDOWS_98
public static final boolean IS_OS_WINDOWS_98
True if this is Windows 98.- Since:
- 2.0
-
IS_OS_WINDOWS_NT
public static final boolean IS_OS_WINDOWS_NT
True if this is Windows NT.- Since:
- 2.0
-
IS_OS_WINDOWS_ME
public static final boolean IS_OS_WINDOWS_ME
True if this is Windows ME.- Since:
- 2.0
-
IS_OS_MAC_YOSEMITE
public static final boolean IS_OS_MAC_YOSEMITE
True if this is Mac Yosemite.
-
IS_OS_MAC_EL_CAPITAN_OR_LATER
public static final boolean IS_OS_MAC_EL_CAPITAN_OR_LATER
True if this is Mac El Capitan or later
-
IS_OS_MAC_MOJAVE_OR_LATER
public static final boolean IS_OS_MAC_MOJAVE_OR_LATER
True if this is Mac Mojave or later
-
IS_OS_MAC_CATALINA_OR_LATER
public static final boolean IS_OS_MAC_CATALINA_OR_LATER
True if this is Mac Catalina or later
-
-
Method Detail
-
getSystemProperty
public static java.lang.String getSystemProperty(java.lang.String key)
Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case we catch the exception and answernull.- Parameters:
key- the name of the system property- Returns:
- the system property's String value, or
nullif there's no such value, or a SecurityException has been caught
-
startsWith
private static boolean startsWith(java.lang.String str, java.lang.String prefix)
-
-