JIDE 3.5.15

com.jidesoft.plaf
Class XPUtils

java.lang.Object
  extended by com.jidesoft.plaf.XPUtils

public class XPUtils
extends Object

Util class for XP style.


Field Summary
static String BLUE
           
static String DEFAULT
           
static String GRAY
           
static String HOMESTEAD
           
static String METALLIC
           
static String PROPERTY_COLORNAME
           
static String PROPERTY_DLLNAME
           
static String PROPERTY_THEMEACTIVE
           
 
Constructor Summary
XPUtils()
           
 
Method Summary
static String getColorName()
          Gets the color name.
static boolean isXPStyleOn()
          Checks if the XP style is on.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_THEMEACTIVE

public static final String PROPERTY_THEMEACTIVE
See Also:
Constant Field Values

PROPERTY_COLORNAME

public static final String PROPERTY_COLORNAME
See Also:
Constant Field Values

PROPERTY_DLLNAME

public static final String PROPERTY_DLLNAME
See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values

GRAY

public static final String GRAY
See Also:
Constant Field Values

BLUE

public static final String BLUE
See Also:
Constant Field Values

HOMESTEAD

public static final String HOMESTEAD
See Also:
Constant Field Values

METALLIC

public static final String METALLIC
See Also:
Constant Field Values
Constructor Detail

XPUtils

public XPUtils()
Method Detail

isXPStyleOn

public static boolean isXPStyleOn()
                           throws UnsupportedOperationException
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

public static String getColorName()
                           throws UnsupportedOperationException
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

public static void main(String[] args)

JIDE 3.5.15