com.atlassian.jira.issue.fields.renderer
Enum HackyRendererType
java.lang.Object
java.lang.Enum<HackyRendererType>
com.atlassian.jira.issue.fields.renderer.HackyRendererType
- All Implemented Interfaces:
- Serializable, Comparable<HackyRendererType>
public enum HackyRendererType
- extends Enum<HackyRendererType>
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
SELECT_LIST
public static final HackyRendererType SELECT_LIST
FROTHER_CONTROL
public static final HackyRendererType FROTHER_CONTROL
values
public static HackyRendererType[] 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 (HackyRendererType c : HackyRendererType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HackyRendererType 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 name
NullPointerException
- if the argument is null
getDisplayNameI18nKey
public String getDisplayNameI18nKey()
- Returns:
- the i18n key to display a user friendly i18nized name for this renderer type
getKey
public String getKey()
- Returns:
- unique key to store with the
FieldLayoutItem
fromKey
public static HackyRendererType fromKey(String key)
- 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
Copyright © 2002-2012 Atlassian. All Rights Reserved.