Class LocalDateTimeRenderers

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

public class LocalDateTimeRenderers extends Object
Factory methods for creating RendererFactory instances that render LocalDateTime values using LocalDateTimeRenderer.
  • Constructor Details

    • LocalDateTimeRenderers

      public LocalDateTimeRenderers()
  • Method Details

    • of

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

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

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

      Returns a factory that formats date-times using the given DateTimeFormatter supplier.
      Parameters:
      formatter - a supplier of the formatter to use
      Returns:
      a RendererFactory using the given formatter supplier
    • of

      public <T> RendererFactory<T,LocalDateTime> of(SerializableSupplier<DateTimeFormatter> formatter, String nullRepresentation)
      Returns a factory that formats date-times 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
      Returns:
      a RendererFactory using the given formatter supplier and null representation