tuning-datefield-demo/src/main/java/org/vaadin/addons/tuningdatefield/demo/AbstractTuningDateFieldDemoUI.java
// We disable for holidays and full day absences
We disable for holidays and full day absences
We disable for holidays and full day absences
@Override
        public boolean isEnabled(LocalDate date, TuningDateField calendar) {
            if (holidayManager.isHoliday(new org.joda.time.LocalDate(date.getYear(), date.getMonthValue(), date.getDayOfMonth())) || absences.contains(new Absence(date, FULLDAY))) {
                return false;
            } else {
                return true;
            }
        }
@ Override public boolean isEnabled ( LocalDate date , TuningDateField calendar ) { if ( holidayManager . isHoliday ( new org . joda . time . LocalDate ( date . getYear ( ) , date . getMonthValue ( ) , date . getDayOfMonth ( ) ) ) || absences . contains ( new Absence ( date , FULLDAY ) ) ) { return false ; } else { return true ; } }
We disable for holidays and full day absences
We disable for holidays and full day absences