Enum Class HackyRendererType

java.lang.Object
java.lang.Enum<HackyRendererType>
com.atlassian.jira.issue.fields.renderer.HackyRendererType
All Implemented Interfaces:
Serializable, Comparable<HackyRendererType>, Constable

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 Details

  • Method Details

    • values

      public static HackyRendererType[] 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

      public static HackyRendererType valueOf(String name)
      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 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