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 given Renderer when 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.vaadin.flow.data.provider.DataGenerator<SOURCE>>
    Gets a DataGenerator associated with the renderer.
    default com.vaadin.flow.shared.Registration
    Gets a Registration that can be used to clean up resources associated with the renderer when it's no longer used.
  • Method Details

    • getDataGenerator

      Optional<com.vaadin.flow.data.provider.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
    • getRegistration

      default com.vaadin.flow.shared.Registration getRegistration()
      Gets a Registration that can be used to clean up resources associated with the renderer when it's no longer used.
      Returns:
      the Registration
      See Also:
      • Registration.remove()