Enum Class GroupColorType
- All Implemented Interfaces:
Serializable,Comparable<GroupColorType>,Constable
The GroupColorType enum represents the types of group color customization
categories. Each type corresponds to a specific category of group color settings,
particularly for Chat, Tab, or Team configurations.
This enum is used as a parameter in methods of the GroupColorProvider interface
and its implementation GroupColorProviderImpl to specify which
category (e.g., Chat, Tab, or Team) is being accessed or modified.
Each constant in the enum holds an associated name that describes the category and is used for accessing the corresponding database column or functionality.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Stringprivate static final Stringprivate static final GroupColorType[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateDefaultTypes(de.murmelmeister.library.database.Database database) static GroupColorTypefromId(int id) static GroupColorTypeintgetId()getName()static voidsetup(de.murmelmeister.library.database.Database database) static GroupColorTypeReturns the enum constant of this class with the specified name.static GroupColorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAT_PREFIX
-
CHAT_SUFFIX
-
CHAT_COLOR
-
CHAT_MESSAGE
-
TAB_PREFIX
-
TAB_SUFFIX
-
TAB_COLOR
-
TEAM_PREFIX
-
TEAM_SUFFIX
-
TEAM_COLOR
-
-
Field Details
-
TABLE_NAME
- See Also:
-
VALUES
-
id
private final int id -
name
-
-
Constructor Details
-
GroupColorType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId() -
getName
-
fromId
-
fromName
-
setup
public static void setup(de.murmelmeister.library.database.Database database) -
createDefaultTypes
public static void createDefaultTypes(de.murmelmeister.library.database.Database database)
-