Class ColumnPathRenderer<SOURCE>

  • Type Parameters:
    SOURCE - the object model type
    All Implemented Interfaces:
    Serializable

    public class ColumnPathRenderer<SOURCE>
    extends Renderer<SOURCE>
    Renderer for columns that doesn't use any template for rendering its contents (only the value from the object model). In such cases, a template element is not needed on the client-side, only the path property.
    Author:
    Vaadin Ltd.
    See Also:
    Grid.addColumn(ValueProvider), Serialized Form
    • Constructor Detail

      • ColumnPathRenderer

        public ColumnPathRenderer​(String property,
                                  com.vaadin.flow.function.ValueProvider<SOURCE,​?> provider)
        Creates a new renderer based on the property and the value provider for that property.
        Parameters:
        property - the property name
        provider - the value provider for the property
    • Method Detail

      • render

        public Rendering<SOURCE> render​(com.vaadin.flow.dom.Element container,
                                        com.vaadin.flow.data.provider.DataKeyMapper<SOURCE> keyMapper,
                                        com.vaadin.flow.dom.Element contentTemplate)
        Overrides:
        render in class Renderer<SOURCE>