Class HierarchyColumnComponentRenderer<COMPONENT extends Component,SOURCE>
- java.lang.Object
-
- com.vaadin.flow.data.renderer.Renderer<SOURCE>
-
- com.vaadin.flow.data.renderer.ComponentRenderer<COMPONENT,SOURCE>
-
- com.vaadin.flow.component.treegrid.HierarchyColumnComponentRenderer<COMPONENT,SOURCE>
-
- Type Parameters:
COMPONENT
- the type of the output componentSOURCE
- 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 putsflow-component-renderer
tag inside ofvaadin-grid-tree-toggle
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HierarchyColumnComponentRenderer(ValueProvider<SOURCE,COMPONENT> componentProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rendering<SOURCE>
render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Handles the rendering of the model objects by using the given<template>
element in the given container.HierarchyColumnComponentRenderer<COMPONENT,SOURCE>
withProperty(String property, ValueProvider<SOURCE,?> provider)
-
Methods inherited from class com.vaadin.flow.data.renderer.ComponentRenderer
createComponent, setComponentRendererTag, updateComponent
-
Methods inherited from class com.vaadin.flow.data.renderer.Renderer
getEventHandlers, getValueProviders, render, setEventHandler, setProperty
-
-
-
-
Constructor Detail
-
HierarchyColumnComponentRenderer
public HierarchyColumnComponentRenderer(ValueProvider<SOURCE,COMPONENT> componentProvider)
-
-
Method Detail
-
withProperty
public HierarchyColumnComponentRenderer<COMPONENT,SOURCE> withProperty(String property, ValueProvider<SOURCE,?> provider)
-
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 classComponentRenderer<COMPONENT extends Component,SOURCE>
- Parameters:
container
- the element in which the template will be attached to, notnull
keyMapper
- mapper used internally to fetch items by key and to provide keys for given items. It is required when either event handlers orDataGenerator
are supportedcontentTemplate
- the<template>
element to be used for rendering in the container, notnull
- Returns:
- the context of the rendering, that can be used by the components to provide extra customization
-
-