Class LocalDateRenderers

java.lang.Object
com.flowingcode.vaadin.addons.easygrid.renderers.LocalDateRenderers

public class LocalDateRenderers extends Object
Factory methods for creating RendererFactory instances that render LocalDate values using LocalDateRenderer.
  • Constructor Details

    • LocalDateRenderers

      public LocalDateRenderers()
  • Method Details

    • of

      public <T> RendererFactory<T,LocalDate> of()
      Returns a factory that uses the default locale and format.
    • of

      public <T> RendererFactory<T,LocalDate> of(String formatPattern)
      Returns a factory that formats dates with the given pattern using the default locale.
      Parameters:
      formatPattern - a DateTimeFormatter pattern
    • of

      public <T> RendererFactory<T,LocalDate> of(String formatPattern, Locale locale)
      Returns a factory that formats dates with the given pattern and locale.
      Parameters:
      formatPattern - a DateTimeFormatter pattern
      locale - 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 - a DateTimeFormatter pattern
      locale - the locale to use
      nullRepresentation - the string to display for null values
    • of

      Returns a factory that formats dates using the given DateTimeFormatter supplier.
      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 given DateTimeFormatter supplier and null representation.
      Parameters:
      formatter - a supplier of the formatter to use
      nullRepresentation - the string to display for null values