public class DefaultHackyFieldRendererRegistry extends Object implements HackyFieldRendererRegistry
| Constructor and Description |
|---|
DefaultHackyFieldRendererRegistry() |
| 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.
|
public boolean shouldOverrideDefaultRenderers(OrderableField field)
HackyFieldRendererRegistryHackyFieldRendererRegistry.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.
shouldOverrideDefaultRenderers in interface HackyFieldRendererRegistryfield - the fieldpublic Set<HackyRendererType> getRendererTypes(OrderableField field)
HackyFieldRendererRegistryHackyFieldRendererRegistry.shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField)
returns true.getRendererTypes in interface HackyFieldRendererRegistryfield - the field@Nullable public HackyRendererType getDefaultRendererType(OrderableField field)
HackyFieldRendererRegistryHackyFieldRendererRegistry.getRendererTypes(com.atlassian.jira.issue.fields.OrderableField).
You should only call this if HackyFieldRendererRegistry.shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField) returns true, otherwise
this will return null.getDefaultRendererType in interface HackyFieldRendererRegistryfield - the fieldCopyright © 2002-2018 Atlassian. All Rights Reserved.