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)
HackyFieldRendererRegistry
HackyFieldRendererRegistry.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 HackyFieldRendererRegistry
field
- the fieldpublic Set<HackyRendererType> getRendererTypes(OrderableField field)
HackyFieldRendererRegistry
HackyFieldRendererRegistry.shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField)
returns true.getRendererTypes
in interface HackyFieldRendererRegistry
field
- the field@Nullable public HackyRendererType getDefaultRendererType(OrderableField field)
HackyFieldRendererRegistry
HackyFieldRendererRegistry.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 HackyFieldRendererRegistry
field
- the fieldCopyright © 2002-2015 Atlassian. All Rights Reserved.