Package com.vaadin.flow.data.renderer
Interface Rendering<SOURCE>
-
- Type Parameters:
SOURCE- the type of the object model
- All Superinterfaces:
Serializable
public interface Rendering<SOURCE> extends Serializable
Defines the context of a givenRendererwhen building the output elements. Components that support Renderers can use the context to customize the rendering according to their needs.- Author:
- Vaadin Ltd
- See Also:
Renderer.render(Element, com.vaadin.flow.data.provider.DataKeyMapper)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Optional<com.vaadin.flow.data.provider.DataGenerator<SOURCE>>getDataGenerator()Gets aDataGeneratorassociated with the renderer.default com.vaadin.flow.shared.RegistrationgetRegistration()Gets aRegistrationthat can be used to clean up resources associated with the renderer when it's no longer used.com.vaadin.flow.dom.ElementgetTemplateElement()Deprecated.since Vaadin 22
-
-
-
Method Detail
-
getDataGenerator
Optional<com.vaadin.flow.data.provider.DataGenerator<SOURCE>> getDataGenerator()
Gets aDataGeneratorassociated with the renderer. The DataGenerator is used in components that support in asynchronous loading of items.- Returns:
- the associated DataGenerator, if any
-
getTemplateElement
@Deprecated com.vaadin.flow.dom.Element getTemplateElement()
Deprecated.since Vaadin 22Gets the<template>element associated with the rendering. This can be used to set specific attributes to the template, or change its contents before it is stamped on the client-side.- Returns:
- the associated template element, or
nullif no template element is associated with the rendering
-
getRegistration
default com.vaadin.flow.shared.Registration getRegistration()
Gets aRegistrationthat can be used to clean up resources associated with the renderer when it's no longer used.- Returns:
- the Registration
- See Also:
Registration.remove()
-
-