Class HierarchyColumnComponentRenderer<COMPONENT extends Component,​SOURCE>

  • Type Parameters:
    COMPONENT - the type of the output component
    SOURCE - the type of the input model object
    All Implemented Interfaces:
    Serializable

    public class HierarchyColumnComponentRenderer<COMPONENT extends Component,​SOURCE>
    extends ComponentRenderer<COMPONENT,​SOURCE>
    Renders components as hierarchy column for tree grid. Basically puts flow-component-renderer tag inside of vaadin-grid-tree-toggle
    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • render

        public Rendering<SOURCE> render​(Element container,
                                        DataKeyMapper<SOURCE> keyMapper,
                                        Element contentTemplate)
        Description copied from class: Renderer
        Handles the rendering of the model objects by using the given <template> element in the given container.

        Subclasses of Renderer usually override this method to provide additional features.

        Overrides:
        render in class ComponentRenderer<COMPONENT extends Component,​SOURCE>
        Parameters:
        container - the element in which the template will be attached to, not null
        keyMapper - mapper used internally to fetch items by key and to provide keys for given items. It is required when either event handlers or DataGenerator are supported
        contentTemplate - the <template> element to be used for rendering in the container, not null
        Returns:
        the context of the rendering, that can be used by the components to provide extra customization