Class ToStringRenderer

java.lang.Object
com.google.gwt.text.shared.AbstractRenderer<Object>
com.google.gwt.text.shared.ToStringRenderer
All Implemented Interfaces:
Renderer<Object>

public class ToStringRenderer extends AbstractRenderer<Object>
A simple renderer that uses Object.toString() of the object.
  • Constructor Details

    • ToStringRenderer

      public ToStringRenderer(String textForNull)
      Constructs a ToStringRenderer that uses custom textForNull for null objects.
  • Method Details

    • instance

      public static ToStringRenderer instance()
      Returns a ToStringRenderer that uses empty string for null objects.
    • render

      public String render(Object object)
      Description copied from interface: Renderer
      Renders object as plain text. Should never throw any exceptions!