|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HackyFieldRendererRegistry
Shoehorn in per-field renderer types that override the pluggable renderers. This registry allows us to switch between the native select list and frother control rendering for the versions and components fields.
In future this hack should be replaced with pluggable per-field renderer types.
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. |
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. |
Method Detail |
---|
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 field
Set<HackyRendererType> getRendererTypes(OrderableField field)
shouldOverrideDefaultRenderers(com.atlassian.jira.issue.fields.OrderableField)
returns true.
field
- the field
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 field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |