Interface Renderer<T>

Type Parameters:
T - the type this renderer knows how to present
All Superinterfaces:
ClientConnector, Serializable
All Known Implementing Classes:
ClickableRenderer, DateRenderer, FComponentRenderer, FGrid.AbstractRenderer, HtmlRenderer, ImageRenderer, TextRenderer

public interface Renderer<T> extends ClientConnector, Serializable
Interface representing Vaadin 7 Renderer which used to be a ClientConnector for controlling client-side Grid renderers. In feature-pack it provides getPresentationType method and everything from ClientConnector interface but notice that actual rendering logic happens via Flow Renderer. There's no encode method to build a JsonValue for the client side, but instead Flow renderer is build with getRenderer() method.
Author:
Vaadin Ltd
  • Method Details

    • getPresentationType

      Class<T> getPresentationType()
      Returns the class literal corresponding to the presentation type T.
      Returns:
      the class literal of T
    • getRenderer

      com.vaadin.flow.data.renderer.Renderer<T> getRenderer()
      Returns the Flow Renderer that will be used to render the items of type T.
      Returns:
      the Flow Renderer for type T