public class RendererUtil extends Object
Used internally by components that support TemplateRenderer.
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
registerEventHandlers(Renderer<T> renderer,
Element contentTemplate,
Element templateDataHost,
ValueProvider<String,T> keyMapper)
Registers the event handlers associated to a
TemplateRenderer, if
any. |
public static <T> void registerEventHandlers(Renderer<T> renderer, Element contentTemplate, Element templateDataHost, ValueProvider<String,T> keyMapper)
TemplateRenderer, if
any. The consumers returned by
Renderer.getEventHandlers() are processed and properly
configured to trigger messages from the client to the server, so event
handlers can catch the events and execute custom logic.T - the type of the renderer and the associated keyMapperrenderer - the TemplateRenderer to be evaluatedcontentTemplate - the <template> element that contains the children that
fire eventstemplateDataHost - the data host of the events - typically the parent of the
contentTemplate, but not necessarilykeyMapper - a value provider that knows how to return items by a given keyCopyright © 2025. All rights reserved.