Class LocalTimeRenderers

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

public class LocalTimeRenderers extends Object
Factory methods for creating RendererFactory instances that render LocalTime values using TextRenderer and DateTimeFormatter.
  • Constructor Details

    • LocalTimeRenderers

      public LocalTimeRenderers()
  • Method Details

    • of

      public <T> RendererFactory<T,LocalTime> of()
      Returns a factory that uses DateTimeFormatter.ISO_LOCAL_TIME and the default locale.
      Returns:
      a RendererFactory using DateTimeFormatter#ISO_LOCAL_TIME and the default locale
    • of

      public <T> RendererFactory<T,LocalTime> of(String formatPattern)
      Returns a factory that formats 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,LocalTime> of(String formatPattern, Locale locale)
      Returns a factory that formats 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,LocalTime> of(String formatPattern, Locale locale, String nullRepresentation)
      Returns a factory that formats 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 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,LocalTime> of(SerializableSupplier<DateTimeFormatter> formatter, String nullRepresentation)
      Returns a factory that formats 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