private void zInternalChangeSelectedDateProcedure ( LocalDate newDate , YearMonth oldYearMonthOrNull ) { LocalDate oldDate = displayedSelectedDate ; displayedSelectedDate = newDate ; for ( CalendarListener calendarListener : calendarListeners ) { CalendarSelectionEvent dateSelectionEvent = new CalendarSelectionEvent ( this , newDate , oldDate ) ; calendarListener . selectedDateChanged ( dateSelectionEvent ) ; } drawCalendar ( displayedYearMonth , oldYearMonthOrNull ) ; // Fire a change event for beans binding. firePropertyChange ( "selectedDate" , oldDate , newDate ) ; }
zInternalChangeSelectedDateProcedure This should be called whenever we need to change the selected date variable . This will store the supplied selected date and redraw the calendar . If needed this will notify all calendar listeners that the selected date has been changed . This does not perform any other tasks besides those described here .