Module MaterialFX

Class LocalDateSpinnerModel

java.lang.Object
io.github.palexdev.materialfx.controls.models.spinner.AbstractSpinnerModel<LocalDate>
io.github.palexdev.materialfx.controls.models.spinner.LocalDateSpinnerModel
All Implemented Interfaces:
SpinnerModel<LocalDate>

public class LocalDateSpinnerModel extends AbstractSpinnerModel<LocalDate>
Concrete implementation of AbstractSpinnerModel to work with LocalDate values.

LocalDateSpinnerModel adds the converterProperty() (since we know the kind of data the model will deal with), and three new properties, minProperty(), maxProperty() and incrementProperty().

The constructor initializes the model with these values:

- The converter uses DateStringConverter with format FormatStyle.MEDIUM

- The default value is LocalDate.EPOCH

- The min value is LocalDate.EPOCH

- The max value is LocalDate.MAX

- The increment is Duration.ofDays(long), 1 day

- The initial value depends on the chosen constructor