Class LocalDateRenderers
java.lang.Object
com.flowingcode.vaadin.addons.easygrid.renderers.LocalDateRenderers
Factory methods for creating
RendererFactory instances that render LocalDate
values using LocalDateRenderer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RendererFactory<T,LocalDate> of()Returns a factory that uses the default locale and format.<T> RendererFactory<T,LocalDate> of(SerializableSupplier<DateTimeFormatter> formatter) Returns a factory that formats dates using the givenDateTimeFormattersupplier.<T> RendererFactory<T,LocalDate> of(SerializableSupplier<DateTimeFormatter> formatter, String nullRepresentation) Returns a factory that formats dates using the givenDateTimeFormattersupplier and null representation.<T> RendererFactory<T,LocalDate> Returns a factory that formats dates with the given pattern using the default locale.<T> RendererFactory<T,LocalDate> Returns a factory that formats dates with the given pattern and locale.<T> RendererFactory<T,LocalDate> Returns a factory that formats dates with the given pattern, locale, and null representation.
-
Constructor Details
-
LocalDateRenderers
public LocalDateRenderers()
-
-
Method Details
-
of
Returns a factory that uses the default locale and format. -
of
Returns a factory that formats dates with the given pattern using the default locale.- Parameters:
formatPattern- aDateTimeFormatterpattern
-
of
Returns a factory that formats dates with the given pattern and locale.- Parameters:
formatPattern- aDateTimeFormatterpatternlocale- the locale to use
-
of
public <T> RendererFactory<T,LocalDate> of(String formatPattern, Locale locale, String nullRepresentation) Returns a factory that formats dates with the given pattern, locale, and null representation.- Parameters:
formatPattern- aDateTimeFormatterpatternlocale- the locale to usenullRepresentation- the string to display fornullvalues
-
of
Returns a factory that formats dates using the givenDateTimeFormattersupplier.- Parameters:
formatter- a supplier of the formatter to use
-
of
public <T> RendererFactory<T,LocalDate> of(SerializableSupplier<DateTimeFormatter> formatter, String nullRepresentation) Returns a factory that formats dates using the givenDateTimeFormattersupplier and null representation.- Parameters:
formatter- a supplier of the formatter to usenullRepresentation- the string to display fornullvalues
-