Class RenderedComponentSupport
-
- All Implemented Interfaces:
public final class RenderedComponentSupportReaches the components a ComponentRenderer has rendered for the rows the client has asked for.
For internal use only.
- Since:
25.3
-
-
Method Summary
Modifier and Type Method Description static ComponentgetRenderedComponent(Grid.Column<out Object> column, String itemKey)Gets the component the column has rendered for the item with the given key. -
-
Method Detail
-
getRenderedComponent
static Component getRenderedComponent(Grid.Column<out Object> column, String itemKey)
Gets the component the column has rendered for the item with the given key.
A component renderer keeps one component per item for as long as the client has the row, and that is the component the browser shows. Flow exposes no API for it: the mapping lives in
AbstractComponentDataGenerator.renderedComponents, and the generator itself is reachable only through the private data generators of the column, so both are read reflectively. The accessor belongs upstream, onGrid.Columninvaadin/flow-componentsor on AbstractComponentDataGenerator invaadin/flow.- Parameters:
column- the column that renders the cellitemKey- key of the item the cell shows- Returns:
the rendered component, or null when the column has rendered no component for the item
-
-
-
-