|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<UIFactory.Colors>
com.sun.javatest.tool.UIFactory.Colors
public static enum UIFactory.Colors
Enum Constant Summary | |
---|---|
INPUT_DEFAULT
Default background color for input fields |
|
INPUT_INVALID
Color used for highlighting incorrect input fields |
|
INPUT_VALID
Color used for highlighting correct input fields |
Method Summary | |
---|---|
static java.awt.Color |
getColorByPreferencesName(java.lang.String prefsName)
Get Color by colors preferences name. |
static java.lang.String[] |
getColorsNames()
Get array with all colors names used in preferences |
java.lang.String |
getDefaultValue()
Getter for default String-encoded color value. |
java.lang.String |
getPreferencesName()
Get color name used in preferences file. |
java.awt.Color |
getValue()
Getter for current color value. |
java.awt.Color |
readColorFromPreferences()
Read color value from preferences ignoring current color value that is returned by getValue(); |
java.awt.Color |
setValue(java.awt.Color c)
Setter for current color value. |
static UIFactory.Colors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UIFactory.Colors |
valueOfByPreferencesName(java.lang.String prefsName)
Find Colors by color preferences name. |
static UIFactory.Colors[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final UIFactory.Colors INPUT_INVALID
public static final UIFactory.Colors INPUT_VALID
public static final UIFactory.Colors INPUT_DEFAULT
Method Detail |
---|
public static final UIFactory.Colors[] values()
for(UIFactory.Colors c : UIFactory.Colors.values()) System.out.println(c);
public static UIFactory.Colors valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic java.lang.String getDefaultValue()
public java.awt.Color getValue()
public java.awt.Color setValue(java.awt.Color c)
public java.lang.String getPreferencesName()
public java.awt.Color readColorFromPreferences()
public static UIFactory.Colors valueOfByPreferencesName(java.lang.String prefsName)
prefsName
- Color preferences name (e.g. "colors.input.default")
java.lang.IllegalArgumentException
- in case there is no Colors with such
namepublic static java.awt.Color getColorByPreferencesName(java.lang.String prefsName)
prefsName
- Color preferences name (e.g. "colors.input.default")
public static java.lang.String[] getColorsNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |