public void setDateSelected ( CalendarDay day , boolean selected ) { if ( selected ) { if ( ! selectedDates . contains ( day ) ) { selectedDates . add ( day ) ; invalidateSelectedDates ( ) ; } } else { if ( selectedDates . contains ( day ) ) { selectedDates . remove ( day ) ; invalidateSelectedDates ( ) ; } } }
Select or un - select a day .