public enum SystemColor extends java.lang.Enum<SystemColor>
Modifier and Type | Method and Description |
---|---|
static SystemColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static SystemColor[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final SystemColor ACTIVE_BORDER
public static final SystemColor ACTIVE_CAPTION
public static final SystemColor APPLICATION_WORKSPACE
public static final SystemColor BACKGROUND
public static final SystemColor BUTTON_FACE
public static final SystemColor BUTTON_HIGHLIGHT
public static final SystemColor BUTTON_SHADOW
public static final SystemColor BUTTON_TEXT
public static final SystemColor CAPTION_TEXT
public static final SystemColor GRADIENT_ACTIVE_CAPTION
public static final SystemColor GRADIENT_INACTIVE_CAPTION
public static final SystemColor GRAY_TEXT
public static final SystemColor HIGHLIGHT
public static final SystemColor HIGHLIGHT_TEXT
public static final SystemColor HOT_LIGHT
public static final SystemColor INACTIVE_BORDER
public static final SystemColor INACTIVE_CAPTION
public static final SystemColor INACTIVE_CAPTION_TEXT
public static final SystemColor INFO_BACKGROUND
public static final SystemColor INFO_TEXT
public static final SystemColor MENU
public static final SystemColor MENU_BAR
public static final SystemColor MENU_HIGHLIGHT
public static final SystemColor MENU_TEXT
public static final SystemColor SCROLL_BAR
public static final SystemColor WINDOW
public static final SystemColor WINDOW_FRAME
public static final SystemColor WINDOW_TEXT
public static final SystemColor X_3D_DARK_SHADOW
public static final SystemColor X_3D_LIGHT
public static SystemColor[] values()
for (SystemColor c : SystemColor.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (SystemColor c : SystemColor.values()) System.out.println(c);)
public static SystemColor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.