Class DateRangePreset
java.lang.Object
com.dlsc.gemsfx.daterange.DateRangePreset
A date range preset is used to populate the "presets" area with the
DateRangeView
control. Users can click on a preset, e.g. "last week" to automatically select the date
range that represents last week.
Presets have to be implemented in such a way that they return the correct date range at any time, meaning the dates can not be fixed at the time of the creation of the date range, but they have to be computed on-the-fly. The UI might have been up and running for several days, hence the meaning of "last week" might have changed.
-
Constructor Details
-
DateRangePreset
Constructs a new date range preset with the given title and date range supplier. The supplier will be used to retrieve the date range on-the-fly when the user clicks on the preset.- Parameters:
title- the title / name of the preset, e.g. "last week"dateRangeSupplier- the supplier returning the date range object for the preset
-
-
Method Details
-
getTitle
-
getDateRangeSupplier
-