Class LocalDateTimeRenderer<SOURCE>

java.lang.Object
com.vaadin.flow.data.renderer.Renderer<SOURCE>
com.vaadin.flow.data.renderer.LitRenderer<SOURCE>
com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,SOURCE>
com.vaadin.flow.data.renderer.BasicRenderer<SOURCE,LocalDateTime>
com.vaadin.flow.data.renderer.LocalDateTimeRenderer<SOURCE>
Type Parameters:
SOURCE - the type of the input item, from which the LocalDateTime is extracted
All Implemented Interfaces:
Serializable

public class LocalDateTimeRenderer<SOURCE> extends BasicRenderer<SOURCE,LocalDateTime>
A renderer for presenting LocalDateTime objects.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the format style FormatStyle.LONG for the date and FormatStyle.SHORT for time, with an empty string as its null representation.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      See Also:
    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider, com.vaadin.flow.function.SerializableSupplier<DateTimeFormatter> formatter)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the given formatter, with the empty string as its null representation.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      formatter - the formatter to use, not null
    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider, com.vaadin.flow.function.SerializableSupplier<DateTimeFormatter> formatter, String nullRepresentation)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the given formatter.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      formatter - the formatter to use, not null
      nullRepresentation - the textual representation of the null value
    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider, String formatPattern)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the given string format, with an empty string as its null representation.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      formatPattern - the format pattern to format the date with, not null
      See Also:
    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider, String formatPattern, Locale locale)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the given string format, as displayed in the given locale, with an empty string as its null representation.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      formatPattern - the format pattern to format the date with, not null
      locale - the locale to use, not null
      See Also:
    • LocalDateTimeRenderer

      public LocalDateTimeRenderer(com.vaadin.flow.function.ValueProvider<SOURCE,LocalDateTime> valueProvider, String formatPattern, Locale locale, String nullRepresentation)
      Creates a new LocalDateTimeRenderer.

      The renderer is configured to render with the given string format, as displayed in the given locale.

      Parameters:
      valueProvider - the callback to provide a LocalDateTime to the renderer, not null
      formatPattern - the format pattern to format the date with, not null
      locale - the locale to use, not null
      nullRepresentation - the textual representation of the null value
      See Also:
  • Method Details