public class

MockFieldLayoutItem

extends Object
implements FieldLayoutItem
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.layout.field.MockFieldLayoutItem

Class Overview

Simple implementation of FieldLayoutItem.

Summary

Public Constructors
MockFieldLayoutItem()
Public Methods
int compareTo(FieldLayoutItem fieldLayoutItem)
String getFieldDescription()
This method should be used to retrieve the HTML rendered representation of the field description.
FieldLayout getFieldLayout()
Returns the FieldLayout that this item is a part of.
OrderableField getOrderableField()
Gets the field in question.
String getRawFieldDescription()
This method should be used to retrieve the NON-HTML rendered representation of the field description.
String getRendererType()
Returns the renderer type, e.g.
boolean isHidden()
Whether the field should be invisible in the UI.
boolean isRequired()
Whether a field value is mandatory.
MockFieldLayoutItem setDescription(String description)
MockFieldLayoutItem setFieldLayout(FieldLayout fieldLayout)
MockFieldLayoutItem setHidden(boolean hidden)
MockFieldLayoutItem setOrderableField(OrderableField orderableField)
MockFieldLayoutItem setRendererType(String type)
MockFieldLayoutItem setRequired(boolean required)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem
From interface java.lang.Comparable

Public Constructors

public MockFieldLayoutItem ()

Public Methods

public int compareTo (FieldLayoutItem fieldLayoutItem)

public String getFieldDescription ()

This method should be used to retrieve the HTML rendered representation of the field description.

Returns
  • rendered view of the field description.

public FieldLayout getFieldLayout ()

Returns the FieldLayout that this item is a part of.

Returns
  • the field layout; may be null.

public OrderableField getOrderableField ()

Gets the field in question.

Returns
  • the field.

public String getRawFieldDescription ()

This method should be used to retrieve the NON-HTML rendered representation of the field description.

Returns
  • the raw field description.

public String getRendererType ()

Returns the renderer type, e.g. RENDERER_TYPE.

Returns
  • the renderer for the field configuration for this field.

public boolean isHidden ()

Whether the field should be invisible in the UI.

Returns
  • true only if the field should be hidden.

public boolean isRequired ()

Whether a field value is mandatory.

Returns
  • true only if a value is required.

public MockFieldLayoutItem setDescription (String description)

public MockFieldLayoutItem setFieldLayout (FieldLayout fieldLayout)

public MockFieldLayoutItem setHidden (boolean hidden)

public MockFieldLayoutItem setOrderableField (OrderableField orderableField)

public MockFieldLayoutItem setRendererType (String type)

public MockFieldLayoutItem setRequired (boolean required)

public String toString ()