Class TextRenderer

All Implemented Interfaces:
ClientConnector, FAbstractClientConnector, Renderer<String>, Serializable

public class TextRenderer extends FGrid.AbstractRenderer<String>
A renderer for presenting simple plain-text string values.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • TextRenderer

      public TextRenderer()
      Creates a new text renderer
    • TextRenderer

      public TextRenderer(String nullRepresentation)
      Creates a new text renderer
      Parameters:
      nullRepresentation - the textual representation of null value
  • Method Details

    • getNullRepresentation

      public String getNullRepresentation()
      Description copied from class: FGrid.AbstractRenderer
      Null representation for the renderer
      Overrides:
      getNullRepresentation in class FGrid.AbstractRenderer<String>
      Returns:
      a textual representation of null
    • getRenderer

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