Class RenderedComponentSupport

  • All Implemented Interfaces:

    
    public final class RenderedComponentSupport
    
                        

    Reaches the components a ComponentRenderer has rendered for the rows the client has asked for.

    For internal use only.

    Since:

    25.3

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Component getRenderedComponent(Grid.Column<out Object> column, String itemKey) Gets the component the column has rendered for the item with the given key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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, 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