com.vaadin.flow.component.treegrid.
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 objectAll Implemented Interfaces:
public class HierarchyColumnComponentRenderer<COMPONENT extends Component,SOURCE> extends ComponentRenderer<COMPONENT,SOURCE>Renders components as hierarchy column for tree grid. Basically puts
flow-component-renderertag inside ofvaadin-grid-tree-toggleSee Also:
-
-
Constructor Summary
Constructors Constructor and Description HierarchyColumnComponentRenderer(ValueProvider<SOURCE,COMPONENT> componentProvider)
-
Method Summary
All Methods Modifier and Type Method and 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:
RendererHandles 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:
renderin classComponentRenderer<COMPONENT extends Component,SOURCE>Parameters:
container- the element in which the template will be attached to, notnullkeyMapper- mapper used internally to fetch items by key and to provide keys for given items. It is required when either event handlers orDataGeneratorare supportedcontentTemplate- the<template>element to be used for rendering in the container, notnullReturns:
the context of the rendering, that can be used by the components to provide extra customization
-
-