Class HierarchyColumnComponentRenderer<COMPONENT extends Component,SOURCE>
java.lang.Object
com.vaadin.flow.data.renderer.Renderer<SOURCE>
com.vaadin.flow.data.renderer.LitRenderer<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.
- Since:
- 5.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchyColumnComponentRenderer(ValueProvider<SOURCE, COMPONENT> componentProvider, TreeGrid<SOURCE> grid) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompiledLitTemplateReturns the declared template used to render items, ornullto render with the string ofLitRenderer.getTemplateExpression().protected StringReturns the Lit template expression used to render items.Methods inherited from class com.vaadin.flow.data.renderer.ComponentRenderer
createComponent, render, updateComponentMethods inherited from class com.vaadin.flow.data.renderer.LitRenderer
getValueProviders, of, of, withFunction, withFunction, withProperty
-
Constructor Details
-
HierarchyColumnComponentRenderer
public HierarchyColumnComponentRenderer(ValueProvider<SOURCE, COMPONENT> componentProvider, TreeGrid<SOURCE> grid)
-
-
Method Details
-
getTemplateExpression
Description copied from class:LitRendererReturns the Lit template expression used to render items.- Overrides:
getTemplateExpressionin classComponentRenderer<COMPONENT extends Component,SOURCE> - Returns:
- the template expression
-
getTemplate
Description copied from class:LitRendererReturns the declared template used to render items, ornullto render with the string ofLitRenderer.getTemplateExpression().A subclass that overrides
LitRenderer.getTemplateExpression()without overriding this method renders with that string, so that existing subclasses of the built-in renderers keep working.- Overrides:
getTemplatein classComponentRenderer<COMPONENT extends Component,SOURCE> - Returns:
- the declared template, or
nullif there is none
-