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 theFieldScreenRenderLayoutItem
s contained on any of theFieldScreenRenderTab
s.Get the underlyingFieldLayout
which backs thisFieldScreenRenderer
.getFieldScreenRenderLayoutItem
(OrderableField orderableField) A convenience method to locate theFieldScreenRenderLayoutItem
which has a field which has an id matching parameter orderableFieldFindFieldScreenRenderLayoutItem
by fieldId in all screen render itemsgetFieldScreenRenderTabPosition
(String fieldId) Return null if cannot find tab for the given fieldIdA convenience method which loops through all theFieldScreenRenderLayoutItem
on all tabs, and returns the ones that are required.
-
Method Details
-
getFieldScreenRenderTabs
- Returns:
- A list of
FieldScreenRenderTab
objects which are visible and contain at least oneFieldScreenRenderLayoutItem
-
getFieldLayout
Description copied from interface:FieldScreenRenderer
Get the underlyingFieldLayout
which 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:FieldScreenRenderer
A convenience method which loops through all theFieldScreenRenderLayoutItem
on all tabs, and returns the ones that are required.- Specified by:
getRequiredFieldScreenRenderItems
in interfaceFieldScreenRenderer
- Returns:
- A collection of
FieldScreenRenderLayoutItem
objects
-
getFieldScreenRenderTabPosition
Return null if cannot find tab for the given fieldId- Specified by:
getFieldScreenRenderTabPosition
in interfaceFieldScreenRenderer
- Parameters:
fieldId
- The id of an theOrderableField
to match against- Returns:
- The tab which contains the field.
- See Also:
-
getFieldScreenRenderLayoutItem
Description copied from interface:FieldScreenRenderer
A convenience method to locate theFieldScreenRenderLayoutItem
which has a field which has an id matching parameter orderableField- Specified by:
getFieldScreenRenderLayoutItem
in interfaceFieldScreenRenderer
- Parameters:
orderableField
- The field to find- Returns:
- The
FieldScreenRenderLayoutItem
which contains theOrderableField
- See Also:
-
getAllScreenRenderItems
Description copied from interface:FieldScreenRenderer
Return a list of all theFieldScreenRenderLayoutItem
s contained on any of theFieldScreenRenderTab
s. It returns the items in order from first tab to last tab.- Specified by:
getAllScreenRenderItems
in interfaceFieldScreenRenderer
- Returns:
- all the layout items from all tabs.
-
getFieldScreenRenderLayoutItemByFieldId
public Optional<FieldScreenRenderLayoutItem> getFieldScreenRenderLayoutItemByFieldId(String fieldId) Description copied from interface:FieldScreenRenderer
FindFieldScreenRenderLayoutItem
by fieldId in all screen render items- Specified by:
getFieldScreenRenderLayoutItemByFieldId
in interfaceFieldScreenRenderer
- Parameters:
fieldId
- field id- Returns:
FieldScreenRenderLayoutItem
if exists, empty optional otherwise
-