com.atlassian.jira.issue.fields.renderer
Enum HackyRendererType

java.lang.Object
  extended by java.lang.Enum<HackyRendererType>
      extended by 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

Enum Constant Summary
FROTHER_CONTROL
           
SELECT_LIST
           
 
Method Summary
static HackyRendererType fromKey(String key)
          Resolves the RendererType object from the string key provided.
 String getDisplayNameI18nKey()
           
 String getKey()
           
static HackyRendererType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HackyRendererType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SELECT_LIST

public static final HackyRendererType SELECT_LIST

FROTHER_CONTROL

public static final HackyRendererType FROTHER_CONTROL
Method Detail

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.