Class DateIntervalSupport

java.lang.Object
io.jmix.flowui.app.propertyfilter.dateinterval.DateIntervalSupport

@Component("flowui_DateIntervalSupport") public class DateIntervalSupport extends Object
Helper class for date intervals.
  • Field Details

  • Constructor Details

    • DateIntervalSupport

      public DateIntervalSupport()
  • Method Details

    • setDateIntervalConverters

      @Autowired public void setDateIntervalConverters(List<DateIntervalConverter> dateIntervalConverters)
    • parseDateInterval

      @Nullable public BaseDateInterval parseDateInterval(String dateInterval)
      Parses string presentation of date interval to BaseDateInterval.
      Parameters:
      dateInterval - string presentation of date interval
      Returns:
      configured date interval or null if input parameter is null or empty
      See Also:
    • formatDateInterval

      public String formatDateInterval(BaseDateInterval dateInterval)
      Formats date interval to string presentation.
      Parameters:
      dateInterval - date interval instance
      Returns:
      raw presentation of date interval
    • getLocalizedValue

      @Nullable public String getLocalizedValue(@Nullable BaseDateInterval dateInterval)
      Formats date interval and gets localized value.
      Parameters:
      dateInterval - date interval instance
      Returns:
      localized value
      See Also:
    • isIntervalTypeSupportsDatatype

      public boolean isIntervalTypeSupportsDatatype(BaseDateInterval value, MetaPropertyPath mpp)
      Parameters:
      mpp - meta property path
      value - date interval
      Returns:
      true if date interval type supports provided property type, false otherwise