question: public boolean isDateTimeAllowed ( LocalDateTime value ) { LocalDate datePortion = ( value == null ) ? null : value . toLocalDate ( ) ; LocalTime timePortion = ( value == null ) ? null : value . toLocalTime ( ) ; boolean isDateAllowed = datePicker . isDateAllowed ( datePortion ) ; boolean isTimeAllowed = timePicker . isTimeAllowed ( timePortion ) ; return ( isDateAllowed && isTimeAllowed ) ; }
target:  isDateTimeAllowed, This checks to see if the specified value is allowed by any currently set veto policies and "allowEmptyValues" settings of both the DatePicker and TimePicker components. If the specified value would be allowed by both components, then this returns true. If the specified value would not be allowed by either or both components, then this returns false. For additional details, see: DatePicker.isDateAllowed() and TimePicker.isTimeAllowed().