Hi all, while implementing the DateModel I got a bit confused with the 'min-/max-date', 'allowed range' and 'valid date' concepts. Could someone please explain how they relate and what they are exactly supposed to do? I have read the Javadoc and searched the forums, but still a bit unclear to me. I am planning to use this model in the CalendarViewer so it would be helpful to know how the three concepts above relate to the CalendarViewer.
Thank you for your time, any help is much appreciated!
Cheers,
Paul
pjvleeuwen@gmail.com
Extraction from Javadoc for reference:
getMinDate - Gets the minimum date allowed.
Returns: the minimum date.
getMaxDate - Gets the minimum date allowed.
Returns: the minimum date.
dayInRange - Checks if the date is in allowed range.
Parameter: calendar - date to be checked.
Returns: true if the calendar is in the allowed range.
monthInRange - Checks if the month is in allowed range.
Parameter: calendar - month to be checked.
Returns: true if the month value in calendar is in the range.
yearInRange - Checks if the year is in allowed range.
Parameter: calendar - year to be checked.
Returns: true if the year value in calendar is in the range.
isValidDate - Checks if the date specified in calendar is a valid date.
Parameter: calendar - date to be checked.
Returns: true if the date specified in calendar is a valid date. Otherwise, false.