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()
FieldLayoutItem
getOrderableField
in interface FieldLayoutItem
public MockFieldLayoutItem setOrderableField(OrderableField orderableField)
public String getFieldDescription()
FieldLayoutItem
getFieldDescription
in interface FieldLayoutItem
public String getRawFieldDescription()
FieldLayoutItem
getRawFieldDescription
in interface FieldLayoutItem
public MockFieldLayoutItem setDescription(String description)
public boolean isHidden()
FieldLayoutItem
isHidden
in interface FieldLayoutItem
public MockFieldLayoutItem setHidden(boolean hidden)
public boolean isRequired()
FieldLayoutItem
isRequired
in interface FieldLayoutItem
public MockFieldLayoutItem setRequired(boolean required)
public String getRendererType()
FieldLayoutItem
DefaultTextRenderer.RENDERER_TYPE
.getRendererType
in interface FieldLayoutItem
public MockFieldLayoutItem setRendererType(String type)
public FieldLayout getFieldLayout()
FieldLayoutItem
FieldLayout
that this item is a part of.getFieldLayout
in interface FieldLayoutItem
public MockFieldLayoutItem setFieldLayout(FieldLayout fieldLayout)
public int compareTo(FieldLayoutItem fieldLayoutItem)
compareTo
in interface Comparable<FieldLayoutItem>
Copyright © 2002-2021 Atlassian. All Rights Reserved.