Class BulkFieldScreenRendererImpl
java.lang.Object
com.atlassian.jira.issue.fields.screen.BulkFieldScreenRendererImpl
- All Implemented Interfaces:
FieldScreenRenderer
-
Method Summary
Modifier and TypeMethodDescriptionReturn a list of all theFieldScreenRenderLayoutItems contained on any of theFieldScreenRenderTabs.Get the underlyingFieldLayoutwhich backs thisFieldScreenRenderer.getFieldScreenRenderLayoutItem(OrderableField orderableField) A convenience method to locate theFieldScreenRenderLayoutItemwhich has a field which has an id matching parameter orderableFieldFindFieldScreenRenderLayoutItemby fieldId in all screen render itemsgetFieldScreenRenderTabPosition(String fieldId) Return null if cannot find tab for the given fieldIdA convenience method which loops through all theFieldScreenRenderLayoutItemon all tabs, and returns the ones that are required.
-
Method Details
-
getFieldScreenRenderTabs
- Returns:
- A list of
FieldScreenRenderTabobjects which are visible and contain at least oneFieldScreenRenderLayoutItem
-
getFieldLayout
Description copied from interface:FieldScreenRendererGet the underlyingFieldLayoutwhich backs thisFieldScreenRenderer. This is currently used to find all the visible fields, not just the ones visible on this screen. This allows the 'default' values to be set on the fields not shown on this screen.- Returns:
- the underlying
FieldLayout.
-
getRequiredFieldScreenRenderItems
Description copied from interface:FieldScreenRendererA convenience method which loops through all theFieldScreenRenderLayoutItemon all tabs, and returns the ones that are required.- Specified by:
getRequiredFieldScreenRenderItemsin interfaceFieldScreenRenderer- Returns:
- A collection of
FieldScreenRenderLayoutItemobjects
-
getFieldScreenRenderTabPosition
Return null if cannot find tab for the given fieldId- Specified by:
getFieldScreenRenderTabPositionin interfaceFieldScreenRenderer- Parameters:
fieldId- The id of an theOrderableFieldto match against- Returns:
- The tab which contains the field.
- See Also:
-
getFieldScreenRenderLayoutItem
Description copied from interface:FieldScreenRendererA convenience method to locate theFieldScreenRenderLayoutItemwhich has a field which has an id matching parameter orderableField- Specified by:
getFieldScreenRenderLayoutItemin interfaceFieldScreenRenderer- Parameters:
orderableField- The field to find- Returns:
- The
FieldScreenRenderLayoutItemwhich contains theOrderableField - See Also:
-
getAllScreenRenderItems
Description copied from interface:FieldScreenRendererReturn a list of all theFieldScreenRenderLayoutItems contained on any of theFieldScreenRenderTabs. It returns the items in order from first tab to last tab.- Specified by:
getAllScreenRenderItemsin interfaceFieldScreenRenderer- Returns:
- all the layout items from all tabs.
-
getFieldScreenRenderLayoutItemByFieldId
public Optional<FieldScreenRenderLayoutItem> getFieldScreenRenderLayoutItemByFieldId(String fieldId) Description copied from interface:FieldScreenRendererFindFieldScreenRenderLayoutItemby fieldId in all screen render items- Specified by:
getFieldScreenRenderLayoutItemByFieldIdin interfaceFieldScreenRenderer- Parameters:
fieldId- field id- Returns:
FieldScreenRenderLayoutItemif exists, empty optional otherwise
-