T - the type of the object being processedpublic class EditorRenderer<T>
extends com.vaadin.flow.data.renderer.Renderer<T>
implements com.vaadin.flow.data.provider.DataGenerator<T>
Grid.Column to control the state of the
editor components.
Components are created during the generateData(Object, JsonObject)
calls, and the proper data is sent to the client-side to be rendered.
Grid.Column.setEditorComponent(Component),
Grid.Column.setEditorComponent(SerializableFunction),
Serialized Form| Constructor and Description |
|---|
EditorRenderer(Editor<T> editor,
String columnInternalId)
Creates a new renderer for a specific column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateData(T item,
elemental.json.JsonObject jsonObject) |
void |
refreshData(T item) |
com.vaadin.flow.data.renderer.Rendering<T> |
render(com.vaadin.flow.dom.Element container,
com.vaadin.flow.data.provider.DataKeyMapper<T> keyMapper,
com.vaadin.flow.dom.Element contentTemplate) |
void |
setComponentFunction(com.vaadin.flow.function.SerializableFunction<T,? extends com.vaadin.flow.component.Component> componentFunction)
Sets the function that creates components to be used as editors for the
column.
|
getEventHandlers, getValueProviders, render, setEventHandler, setPropertypublic void setComponentFunction(com.vaadin.flow.function.SerializableFunction<T,? extends com.vaadin.flow.component.Component> componentFunction)
null, an empty component is used
instead.componentFunction - the function that generates editor componentspublic void generateData(T item, elemental.json.JsonObject jsonObject)
generateData in interface com.vaadin.flow.data.provider.DataGenerator<T>public void refreshData(T item)
refreshData in interface com.vaadin.flow.data.provider.DataGenerator<T>Copyright © 2026. All rights reserved.