Package com.vaadin.browserless.internal
Class RenderedComponentSupport
java.lang.Object
com.vaadin.browserless.internal.RenderedComponentSupport
Reaches the components a
ComponentRenderer has rendered for the rows
the client has asked for.
For internal use only.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentgetRenderedComponent(Grid.Column<?> column, String itemKey) Gets the component the column has rendered for the item with the given key.
-
Method Details
-
getRenderedComponent
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 onAbstractComponentDataGeneratorinvaadin/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
-