Class LookUtils
- java.lang.Object
-
- org.pushingpixels.radiance.common.internal.contrib.jgoodies.looks.LookUtils
-
public final class LookUtils extends java.lang.Object
Provides convenience behavior used by the JGoodies Looks.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
IS_OS_MAC
True if this is the Mac OS X.static boolean
IS_OS_MAC_CATALINA_OR_LATER
True if this is Mac Catalina or laterstatic boolean
IS_OS_MAC_EL_CAPITAN_OR_LATER
True if this is Mac El Capitan or laterstatic boolean
IS_OS_MAC_MOJAVE_OR_LATER
True if this is Mac Mojave or laterstatic boolean
IS_OS_MAC_YOSEMITE
True if this is Mac Yosemite.static boolean
IS_OS_WINDOWS
True if this is Windows.static boolean
IS_OS_WINDOWS_95
True if this is Windows 95.static boolean
IS_OS_WINDOWS_98
True if this is Windows 98.static boolean
IS_OS_WINDOWS_ME
True if this is Windows ME.static boolean
IS_OS_WINDOWS_NT
True if this is Windows NT.private static java.lang.String
OS_NAME
Theos.name
System Property.private static java.lang.String
OS_VERSION
Theos.version
System Property.
-
Constructor Summary
Constructors Modifier Constructor Description private
LookUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getSystemProperty(java.lang.String key)
Tries to look up the System property for the given key.private static boolean
startsWith(java.lang.String str, java.lang.String prefix)
-
-
-
Field Detail
-
OS_NAME
private static final java.lang.String 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
private static final java.lang.String 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_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
null
if there's no such value, or a SecurityException has been caught
-
startsWith
private static boolean startsWith(java.lang.String str, java.lang.String prefix)
-
-