Class MockFieldLayoutItem
java.lang.Object
com.atlassian.jira.issue.fields.layout.field.MockFieldLayoutItem
- All Implemented Interfaces:
FieldLayoutItem,Comparable<FieldLayoutItem>
Simple implementation of
FieldLayoutItem.- Since:
- v4.1
-
Constructor Summary
ConstructorsConstructorDescriptionMockFieldLayoutItem(OrderableField orderableField, String description, boolean hidden, boolean required, String rendererType, FieldLayout fieldLayout) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FieldLayoutItem fieldLayoutItem) This method should be used to retrieve the HTML rendered representation of the field description.Returns theFieldLayoutthat this item is a part of.Gets the field in question.This method should be used to retrieve the NON-HTML rendered representation of the field description.Returns the renderer type, e.g.booleanisHidden()Whether the field should be invisible in the UI.booleanWhether a field value is mandatory.setDescription(String description) setFieldLayout(FieldLayout fieldLayout) setHidden(boolean hidden) setOrderableField(OrderableField orderableField) setRendererType(String type) setRequired(boolean required) toString()
-
Constructor Details
-
MockFieldLayoutItem
public MockFieldLayoutItem() -
MockFieldLayoutItem
public MockFieldLayoutItem(OrderableField orderableField, String description, boolean hidden, boolean required, String rendererType, FieldLayout fieldLayout)
-
-
Method Details
-
getOrderableField
Description copied from interface:FieldLayoutItemGets the field in question.- Specified by:
getOrderableFieldin interfaceFieldLayoutItem- Returns:
- the field.
-
setOrderableField
-
getFieldDescription
Description copied from interface:FieldLayoutItemThis method should be used to retrieve the HTML rendered representation of the field description.- Specified by:
getFieldDescriptionin interfaceFieldLayoutItem- Returns:
- rendered view of the field description.
-
getRawFieldDescription
Description copied from interface:FieldLayoutItemThis method should be used to retrieve the NON-HTML rendered representation of the field description.- Specified by:
getRawFieldDescriptionin interfaceFieldLayoutItem- Returns:
- the raw field description.
-
setDescription
-
isHidden
public boolean isHidden()Description copied from interface:FieldLayoutItemWhether the field should be invisible in the UI.- Specified by:
isHiddenin interfaceFieldLayoutItem- Returns:
- true only if the field should be hidden.
-
setHidden
-
isRequired
public boolean isRequired()Description copied from interface:FieldLayoutItemWhether a field value is mandatory.- Specified by:
isRequiredin interfaceFieldLayoutItem- Returns:
- true only if a value is required.
-
setRequired
-
getRendererType
Description copied from interface:FieldLayoutItemReturns the renderer type, e.g.DefaultTextRenderer.RENDERER_TYPE.- Specified by:
getRendererTypein interfaceFieldLayoutItem- Returns:
- the renderer for the field configuration for this field.
-
setRendererType
-
getFieldLayout
Description copied from interface:FieldLayoutItemReturns theFieldLayoutthat this item is a part of.- Specified by:
getFieldLayoutin interfaceFieldLayoutItem- Returns:
- the field layout; may be null.
-
setFieldLayout
-
compareTo
- Specified by:
compareToin interfaceComparable<FieldLayoutItem>
-
toString
-