Package org.cyclos.model.system.fields
Enum CustomFieldSize
- java.lang.Object
-
- java.lang.Enum<CustomFieldSize>
-
- org.cyclos.model.system.fields.CustomFieldSize
-
- All Implemented Interfaces:
Serializable,Comparable<CustomFieldSize>,HasMessageKey
public enum CustomFieldSize extends Enum<CustomFieldSize> implements HasMessageKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static CustomFieldSizevalueOf(String name)Returns the enum constant of this type with the specified name.static CustomFieldSize[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TINY
public static final CustomFieldSize TINY
-
SMALL
public static final CustomFieldSize SMALL
-
MEDIUM
public static final CustomFieldSize MEDIUM
-
LARGE
public static final CustomFieldSize LARGE
-
FULL
public static final CustomFieldSize FULL
-
-
Method Detail
-
values
public static CustomFieldSize[] 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 (CustomFieldSize c : CustomFieldSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomFieldSize 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-