Interface FieldScreenRenderer
- All Known Implementing Classes:
BulkFieldScreenRendererImpl
@PublicApi
public interface FieldScreenRenderer
Copyright (c) 2002-2004
All rights reserved.
A FieldScreenRenderer glues a FieldLayout (which governs requireability and hideability) with a FieldScreen (which governs tabs, and ordering within tabs, and screen-level hideability). For example, it is possible for a field to be hidden on this screen, but still visible on other screens.
FieldScreenRenderers are usually constructed with a user, and a particular operation.
-
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) A convenience method to locate the tab, which contains theFieldScreenRenderLayoutItemwhich has a field which has an id matching parameter fieldIdA convenience method which loops through all theFieldScreenRenderLayoutItemon all tabs, and returns the ones that are required.
-
Method Details
-
getFieldScreenRenderTabs
List<FieldScreenRenderTab> getFieldScreenRenderTabs()- Returns:
- A list of
FieldScreenRenderTabobjects which are visible and contain at least oneFieldScreenRenderLayoutItem
-
getFieldScreenRenderTabPosition
A convenience method to locate the tab, which contains theFieldScreenRenderLayoutItemwhich has a field which has an id matching parameter fieldId- Parameters:
fieldId- The id of an theOrderableFieldto match against- Returns:
- The tab which contains the field.
- See Also:
-
getFieldScreenRenderLayoutItem
A convenience method to locate theFieldScreenRenderLayoutItemwhich has a field which has an id matching parameter orderableField- Parameters:
orderableField- The field to find- Returns:
- The
FieldScreenRenderLayoutItemwhich contains theOrderableField - See Also:
-
getFieldLayout
FieldLayout getFieldLayout()Get 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
Collection<FieldScreenRenderLayoutItem> getRequiredFieldScreenRenderItems()A convenience method which loops through all theFieldScreenRenderLayoutItemon all tabs, and returns the ones that are required.- Returns:
- A collection of
FieldScreenRenderLayoutItemobjects
-
getAllScreenRenderItems
List<FieldScreenRenderLayoutItem> getAllScreenRenderItems()Return a list of all theFieldScreenRenderLayoutItems contained on any of theFieldScreenRenderTabs. It returns the items in order from first tab to last tab.- Returns:
- all the layout items from all tabs.
-
getFieldScreenRenderLayoutItemByFieldId
FindFieldScreenRenderLayoutItemby fieldId in all screen render items- Parameters:
fieldId- field id- Returns:
FieldScreenRenderLayoutItemif exists, empty optional otherwise- Since:
- 9.9
-