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