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