|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.renderer.DefaultHackyFieldRendererRegistry
public class DefaultHackyFieldRendererRegistry
Constructor Summary | |
---|---|
DefaultHackyFieldRendererRegistry()
|
Method Summary | |
---|---|
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. |
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHackyFieldRendererRegistry()
Method Detail |
---|
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 field
public java.util.Set<HackyRendererType> getRendererTypes(OrderableField field)
HackyFieldRendererRegistry
HackyFieldRendererRegistry.shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField)
returns true.
getRendererTypes
in interface HackyFieldRendererRegistry
field
- the field
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 field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |