Class DateRange

java.lang.Object
com.dlsc.gemsfx.daterange.DateRange

public class DateRange extends Object
A model class used for the DateRangeView and DateRangePicker controls. A date range defines a start and an end date plus an optional title.
  • Constructor Details

    • DateRange

      public DateRange(String title, LocalDate startDate, LocalDate endDate)
      Constructs a new date range object with the specified parameters.
      Parameters:
      title - the optional title of the date range
      startDate - the start date of the date range
      endDate - the end date of the date range
    • DateRange

      public DateRange(LocalDate startDate, LocalDate endDate)
      Constructs a new date range object with the specified parameters.
      Parameters:
      startDate - the start date of the date range
      endDate - the end date of the date range
    • DateRange

      public DateRange(String title, LocalDate date)
      Constructs a new date range object with the specified title and date where the date will be used as the start and end date (single day range).
      Parameters:
      title - the optional title of the date range
      date - the start and end date of the date range
    • DateRange

      public DateRange(LocalDate date)
      Constructs a new date range object with the specified start date and end date.
      Parameters:
      date - the start and end date of the date range
  • Method Details