Class NumberFormatRenderer

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

public class NumberFormatRenderer extends AbstractRenderer<Number>
Renders Number objects with a NumberFormat.
  • Constructor Details

    • NumberFormatRenderer

      public NumberFormatRenderer()
      Create an instance using NumberFormat.getDecimalFormat().
    • NumberFormatRenderer

      public NumberFormatRenderer(NumberFormat format)
      Create an instance with the given format.
  • Method Details

    • render

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