The DatePicker component allows the user to select a date. A CalendarSelectionModel interface is used to track the currently selected date, which is a Calendar object. Again you can register a ChangeListener to be informed of any changes to the selected date.
The CalendarSelectionModel actually tracks the currently displayed date as well as the selected date. This allows the application to know when the user is scrolling through dates, and perhaps changes its data view based on that.
For example you could have a list of appointments for the currently displayed month, as as the user scrolls through the months, the ChangeListener will be informed and the appointments could be updated.
|