Package coop.intergal.ui.util
Enum TextColor
- java.lang.Object
-
- java.lang.Enum<TextColor>
-
- coop.intergal.ui.util.TextColor
-
- All Implemented Interfaces:
Serializable,Comparable<TextColor>
public enum TextColor extends Enum<TextColor>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BODYDISABLEDERRORERROR_CONTRASTHEADERPRIMARYPRIMARY_CONTRASTSECONDARYSUCCESSSUCCESS_CONTRASTTERTIARY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static TextColorvalueOf(String name)Returns the enum constant of this type with the specified name.static TextColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final TextColor HEADER
-
BODY
public static final TextColor BODY
-
SECONDARY
public static final TextColor SECONDARY
-
TERTIARY
public static final TextColor TERTIARY
-
DISABLED
public static final TextColor DISABLED
-
PRIMARY
public static final TextColor PRIMARY
-
PRIMARY_CONTRAST
public static final TextColor PRIMARY_CONTRAST
-
ERROR
public static final TextColor ERROR
-
ERROR_CONTRAST
public static final TextColor ERROR_CONTRAST
-
SUCCESS
public static final TextColor SUCCESS
-
SUCCESS_CONTRAST
public static final TextColor SUCCESS_CONTRAST
-
-
Method Detail
-
values
public static TextColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextColor c : TextColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
-