private void userSelectedADate(LocalDate selectedDate){
  if (settings == null) {
    return;
  }
  if (selectedDate != null) {
    DateVetoPolicy vetoPolicy=settings.getVetoPolicy();
    if (InternalUtilities.isDateVetoed(vetoPolicy,selectedDate)) {
      return;
    }
  }
  if (selectedDate != null) {
    YearMonth selectedDateYearMonth=YearMonth.from(selectedDate);
    displayedYearMonth=selectedDateYearMonth;
  }
 else {
    displayedYearMonth=YearMonth.now();
  }
  zInternalChangeSelectedDateProcedure(selectedDate);
  if (settings.getParentDatePicker() != null) {
    DatePicker parent=settings.getParentDatePicker();
    parent.setDate(selectedDate);
    parent.closePopup();
  }
}

private void userSelectedADate ( LocalDate selectedDate ) { if ( settings == null ) { return ; } if ( selectedDate != null ) { DateVetoPolicy vetoPolicy = settings . getVetoPolicy ( ) ; if ( InternalUtilities . isDateVetoed ( vetoPolicy , selectedDate ) ) { return ; } } if ( selectedDate != null ) { YearMonth selectedDateYearMonth = YearMonth . from ( selectedDate ) ; displayedYearMonth = selectedDateYearMonth ; } else { displayedYearMonth = YearMonth . now ( ) ; } zInternalChangeSelectedDateProcedure ( selectedDate ) ; if ( settings . getParentDatePicker ( ) != null ) { DatePicker parent = settings . getParentDatePicker ( ) ; parent . setDate ( selectedDate ) ; parent . closePopup ( ) ; } }
userselectedadate , this is called any time that the user makes a date selection on the calendar panel , including choosing to clear the date . if this calendar panel is being used inside of a datepicker , then this will save the selected date and close the calendar . the only time this function will not be called during an exit event , is if the user left focus of the component or pressed escape to cancel choosing a new date .
