CalendarPicker calendarPicker = new CalendarPicker();
calendarPicker.setMode(CalendarPicker.Mode.SINGLE);
calendarPicker.localeProperty().set(getSkinnable().localeProperty().get());
calendarPicker.allowNullProperty().set(getSkinnable().allowNullProperty().get());
calendarPicker.calendarProperty().set(getSkinnable().calendarProperty().get());
calendarPicker.disabledCalendars().addAll(getSkinnable().disabledCalendars());
calendarPicker.highlightedCalendars().addAll(getSkinnable().highlightedCalendars());
calendarPicker.setCalendarRangeCallback(new Callback<CalendarRange,Void>() {
@Override
public Void call(CalendarRange calendarRange) {
Callback<CalendarRange, Void> lCallback = getSkinnable().getCalendarRangeCallback();