Package com.jidesoft.plaf
Class XPUtils
java.lang.Object
com.jidesoft.plaf.XPUtils
Util class for XP style.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the color name.static boolean
Checks if the XP style is on.static void
-
Field Details
-
PROPERTY_THEMEACTIVE
- See Also:
-
PROPERTY_COLORNAME
- See Also:
-
PROPERTY_DLLNAME
- See Also:
-
DEFAULT
- See Also:
-
GRAY
- See Also:
-
BLUE
- See Also:
-
HOMESTEAD
- See Also:
-
METALLIC
- See Also:
-
-
Constructor Details
-
XPUtils
public XPUtils()
-
-
Method Details
-
isXPStyleOn
Checks if the XP style is on. Even on Windows XP OS, user can choose Classic style or XP style. This method will tell you if XP style is on. Please note it will return the correct value only if it's jdk1.4.2 and above. Otherwise it will throw UnsupportedOperationException.- Returns:
- true if XP style in on.
- Throws:
UnsupportedOperationException
- if jdk version is not 1.4.2 or above.
-
getColorName
Gets the color name. On Windows XP, it could be one of the values BLUE, HOMESTEAD or METALLIC. If XP style is not on or the system is not Windows XP at all, it will return null. Please note it will return the correct value only if it's jdk1.4.2 and above. Otherwise it will throw UnsupportedOperationException.- Returns:
- the color name of XP theme.
- Throws:
UnsupportedOperationException
- if jdk version is not 1.4.2 or above.
-
main
-