public class MockFieldLayoutItem extends Object implements FieldLayoutItem
FieldLayoutItem.| Constructor and Description |
|---|
MockFieldLayoutItem() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public OrderableField getOrderableField()
FieldLayoutItemgetOrderableField in interface FieldLayoutItempublic MockFieldLayoutItem setOrderableField(OrderableField orderableField)
public String getFieldDescription()
FieldLayoutItemgetFieldDescription in interface FieldLayoutItempublic String getRawFieldDescription()
FieldLayoutItemgetRawFieldDescription in interface FieldLayoutItempublic MockFieldLayoutItem setDescription(String description)
public boolean isHidden()
FieldLayoutItemisHidden in interface FieldLayoutItempublic MockFieldLayoutItem setHidden(boolean hidden)
public boolean isRequired()
FieldLayoutItemisRequired in interface FieldLayoutItempublic MockFieldLayoutItem setRequired(boolean required)
public String getRendererType()
FieldLayoutItemDefaultTextRenderer.RENDERER_TYPE.getRendererType in interface FieldLayoutItempublic MockFieldLayoutItem setRendererType(String type)
public FieldLayout getFieldLayout()
FieldLayoutItemFieldLayout that this item is a part of.getFieldLayout in interface FieldLayoutItempublic MockFieldLayoutItem setFieldLayout(FieldLayout fieldLayout)
public int compareTo(FieldLayoutItem fieldLayoutItem)
compareTo in interface Comparable<FieldLayoutItem>Copyright © 2002-2018 Atlassian. All Rights Reserved.