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 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) A convenience method to locate the tab, which contains theFieldScreenRenderLayoutItem
which has a field which has an id matching parameter fieldIdA convenience method which loops through all theFieldScreenRenderLayoutItem
on all tabs, and returns the ones that are required.
-
Method Details
-
getFieldScreenRenderTabs
List<FieldScreenRenderTab> getFieldScreenRenderTabs()- Returns:
- A list of
FieldScreenRenderTab
objects which are visible and contain at least oneFieldScreenRenderLayoutItem
-
getFieldScreenRenderTabPosition
A convenience method to locate the tab, which contains theFieldScreenRenderLayoutItem
which has a field which has an id matching parameter fieldId- Parameters:
fieldId
- The id of an theOrderableField
to match against- Returns:
- The tab which contains the field.
- See Also:
-
getFieldScreenRenderLayoutItem
A convenience method to locate theFieldScreenRenderLayoutItem
which has a field which has an id matching parameter orderableField- Parameters:
orderableField
- The field to find- Returns:
- The
FieldScreenRenderLayoutItem
which contains theOrderableField
- See Also:
-
getFieldLayout
FieldLayout getFieldLayout()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
Collection<FieldScreenRenderLayoutItem> getRequiredFieldScreenRenderItems()A convenience method which loops through all theFieldScreenRenderLayoutItem
on all tabs, and returns the ones that are required.- Returns:
- A collection of
FieldScreenRenderLayoutItem
objects
-
getAllScreenRenderItems
List<FieldScreenRenderLayoutItem> getAllScreenRenderItems()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.- Returns:
- all the layout items from all tabs.
-
getFieldScreenRenderLayoutItemByFieldId
FindFieldScreenRenderLayoutItem
by fieldId in all screen render items- Parameters:
fieldId
- field id- Returns:
FieldScreenRenderLayoutItem
if exists, empty optional otherwise- Since:
- 9.9
-