public interface HackyFieldRendererRegistry
In future this hack should be replaced with pluggable per-field renderer types.
| Modifier and Type | Method and Description |
|---|---|
HackyRendererType |
getDefaultRendererType(OrderableField field)
Given the field, return the default renderer type that can be used to initilize the field layout item for this
field.
|
Set<HackyRendererType> |
getRendererTypes(OrderableField field)
The set of renderer types for the field.
|
boolean |
shouldOverrideDefaultRenderers(OrderableField field)
If this method returns true then users will be able to choose renderers in the field configuration for the field.
|
boolean shouldOverrideDefaultRenderers(OrderableField field)
getRendererTypes(com.atlassian.jira.issue.fields.OrderableField)
and will override any pluggable renderer types defined.
Fields that don't implement the RenderableField
interface (or that do but but return false for RenderableField.isRenderable(), e.g., custom
fields) can still return true here to signify that they should have the option to choose renderers.
field - the fieldSet<HackyRendererType> getRendererTypes(OrderableField field)
shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField)
returns true.field - the field@Nullable HackyRendererType getDefaultRendererType(OrderableField field)
getRendererTypes(com.atlassian.jira.issue.fields.OrderableField).
You should only call this if shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField) returns true, otherwise
this will return null.field - the fieldCopyright © 2002-2018 Atlassian. All Rights Reserved.