com.vaadin.flow.data.renderer.
Interface Rendering<SOURCE>
-
Type Parameters:
SOURCE
- the type of the object modelAll Superinterfaces:
public interface Rendering<SOURCE> extends Serializable
Defines the context of a given
Renderer
when building the output elements. Components that support Renderers can use the context to customize the rendering according to their needs.Since:
1.0.
Author:
Vaadin Ltd
See Also:
Renderer.render(Element, com.vaadin.flow.data.provider.DataKeyMapper)
-
-
Method Summary
All Methods Modifier and Type Method and Description Optional<DataGenerator<SOURCE>>
getDataGenerator()
Gets a
DataGenerator
associated with the renderer.Element
getTemplateElement()
Gets the
<template>
element associated with the rendering.
-
-
-
Method Detail
-
getDataGenerator
Optional<DataGenerator<SOURCE>> getDataGenerator()
Gets a
DataGenerator
associated with the renderer. The DataGenerator is used in components that support in asynchronous loading of items.Returns:
the associated DataGenerator, if any
-
getTemplateElement
Element getTemplateElement()
Gets 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
null
if no template element is associated with the rendering
-
-