Class RenderedComponentSupport

java.lang.Object
com.vaadin.browserless.internal.RenderedComponentSupport

public final class RenderedComponentSupport extends Object
Reaches the components a ComponentRenderer has rendered for the rows the client has asked for.

For internal use only.

  • Method Details

    • getRenderedComponent

      public static Component getRenderedComponent(Grid.Column<?> 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, on Grid.Column in vaadin/flow-components or on AbstractComponentDataGenerator in vaadin/flow.

      Parameters:
      column - the column that renders the cell
      itemKey - key of the item the cell shows
      Returns:
      the rendered component, or null when the column has rendered no component for the item