Class LookUtils
java.lang.Object
org.pushingpixels.radiance.common.internal.contrib.jgoodies.looks.LookUtils
Provides convenience behavior used by the JGoodies Looks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
True if this is the Mac OS X.static final boolean
True if this is Mac Catalina or laterstatic final boolean
True if this is Mac El Capitan or laterstatic final boolean
True if this is Mac Mojave or laterstatic final boolean
True if this is Mac Yosemite.static final boolean
True if this is Windows.static final boolean
True if this is Windows 95.static final boolean
True if this is Windows 98.static final boolean
True if this is Windows ME.static final boolean
True if this is Windows NT.private static final String
Theos.name
System Property.private static final String
Theos.version
System Property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getSystemProperty
(String key) Tries to look up the System property for the given key.private static boolean
startsWith
(String str, String prefix)
-
Field Details
-
OS_NAME
Theos.name
System Property. Operating system name.Defaults to
null
if the runtime does not have security access to read this property or the property does not exist. -
OS_VERSION
Theos.version
System Property. Operating system version.Defaults to
null
if 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_MACTrue if this is the Mac OS X. -
IS_OS_WINDOWS
public static final boolean IS_OS_WINDOWSTrue if this is Windows. -
IS_OS_WINDOWS_95
public static final boolean IS_OS_WINDOWS_95True if this is Windows 95.- Since:
- 2.0
-
IS_OS_WINDOWS_98
public static final boolean IS_OS_WINDOWS_98True if this is Windows 98.- Since:
- 2.0
-
IS_OS_WINDOWS_NT
public static final boolean IS_OS_WINDOWS_NTTrue if this is Windows NT.- Since:
- 2.0
-
IS_OS_WINDOWS_ME
public static final boolean IS_OS_WINDOWS_METrue if this is Windows ME.- Since:
- 2.0
-
IS_OS_MAC_YOSEMITE
public static final boolean IS_OS_MAC_YOSEMITETrue if this is Mac Yosemite. -
IS_OS_MAC_EL_CAPITAN_OR_LATER
public static final boolean IS_OS_MAC_EL_CAPITAN_OR_LATERTrue if this is Mac El Capitan or later -
IS_OS_MAC_MOJAVE_OR_LATER
public static final boolean IS_OS_MAC_MOJAVE_OR_LATERTrue if this is Mac Mojave or later -
IS_OS_MAC_CATALINA_OR_LATER
public static final boolean IS_OS_MAC_CATALINA_OR_LATERTrue if this is Mac Catalina or later
-
-
Constructor Details
-
LookUtils
private LookUtils()
-
-
Method Details
-
getSystemProperty
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
null
if there's no such value, or a SecurityException has been caught
-
startsWith
-