SOURCE - the object model typepublic class ColumnPathRenderer<SOURCE> extends Renderer<SOURCE>
template
element is not needed on the client-side, only the path property.Grid.addColumn(ValueProvider),
Serialized Form| Constructor and Description |
|---|
ColumnPathRenderer(String property,
ValueProvider<SOURCE,?> provider)
Creates a new renderer based on the property and the value provider for
that property.
|
| Modifier and Type | Method and Description |
|---|---|
Rendering<SOURCE> |
render(Element container,
DataKeyMapper<SOURCE> keyMapper)
Handles the rendering of the model objects by creating a new
<template> element in the given container. |
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. |
getEventHandlers, getValueProviders, setEventHandler, setPropertypublic ColumnPathRenderer(String property, ValueProvider<SOURCE,?> provider)
property - the property nameprovider - the value provider for the propertypublic Rendering<SOURCE> render(Element container, DataKeyMapper<SOURCE> keyMapper)
Renderer<template> element in the given container.render in class Renderer<SOURCE>container - the element in which the template will be attached tokeyMapper - 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 supportedpublic Rendering<SOURCE> render(Element container, DataKeyMapper<SOURCE> keyMapper, Element contentTemplate)
Renderer<template> element in the given container.
Subclasses of Renderer usually override this method to provide additional features.
render in class Renderer<SOURCE>container - the element in which the template will be attached to, not
nullkeyMapper - 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 supportedcontentTemplate - the <template> element to be used for rendering in the
container, not nullCopyright © 2025. All rights reserved.