Class PassthroughRenderer

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

public class PassthroughRenderer extends AbstractRenderer<String>
A no-op String renderer. This is rarely or never the right thing to use in production, but it's handy for tests.
  • Constructor Details

    • PassthroughRenderer

      protected PassthroughRenderer()
  • Method Details

    • instance

      public static Renderer<String> instance()
      Returns the instance of the no-op renderer.
    • render

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