Class NumberRenderers
java.lang.Object
com.flowingcode.vaadin.addons.easygrid.renderers.NumberRenderers
Factory methods for creating
RendererFactory instances that render Number values
using NumberRenderer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RendererFactory<T,Number> Returns a factory that formats numbers using the givenFormatterformat string and the default locale.<T> RendererFactory<T,Number> Returns a factory that formats numbers using the givenFormatterformat string and locale.<T> RendererFactory<T,Number> Returns a factory that formats numbers using the givenFormatterformat string, locale, and null representation.<T> RendererFactory<T,Number> of(NumberFormat numberFormat) Returns a factory that formats numbers using the givenNumberFormat.<T> RendererFactory<T,Number> of(NumberFormat numberFormat, String nullRepresentation) Returns a factory that formats numbers using the givenNumberFormatand null representation.<T> RendererFactory<T,Number> Returns a factory that formats numbers using the default format for the given locale.
-
Constructor Details
-
NumberRenderers
public NumberRenderers()
-
-
Method Details
-
of
Returns a factory that formats numbers using the givenNumberFormat.- Parameters:
numberFormat- the format to use
-
of
Returns a factory that formats numbers using the givenNumberFormatand null representation.- Parameters:
numberFormat- the format to usenullRepresentation- the string to display fornullvalues
-
of
Returns a factory that formats numbers using the default format for the given locale.- Parameters:
locale- the locale to use
-
of
Returns a factory that formats numbers using the givenFormatterformat string and the default locale.- Parameters:
formatString- ajava.util.Formatterformat string
-
of
Returns a factory that formats numbers using the givenFormatterformat string and locale.- Parameters:
formatString- aFormatterformat stringlocale- the locale to use
-
of
public <T> RendererFactory<T,Number> of(String formatString, Locale locale, String nullRepresentation) Returns a factory that formats numbers using the givenFormatterformat string, locale, and null representation.- Parameters:
formatString- aFormatterformat stringlocale- the locale to usenullRepresentation- the string to display fornullvalues
-