Enum Class HackyRendererType
- All Implemented Interfaces:
Serializable,Comparable<HackyRendererType>,Constable
Enumeration to define a set of custom renderer types to provide for a number of fields as defined in the
HackyFieldRendererRegistry. A renderer type is simply a key and i18n key
that can be used to display an i18nized name in the UI.- Since:
- v4.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HackyRendererTypeResolves the RendererType object from the string key provided.getKey()static HackyRendererTypeReturns the enum constant of this class with the specified name.static HackyRendererType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELECT_LIST
-
FROTHER_CONTROL
-
-
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
-
getDisplayNameI18nKey
- Returns:
- the i18n key to display a user friendly i18nized name for this renderer type
-
getKey
- Returns:
- unique key to store with the
FieldLayoutItem
-
fromKey
Resolves the RendererType object from the string key provided. May return null if no matching RendererType can be found.- Parameters:
key- The key- Returns:
- A HackyRendererType or null
-