/** * Selects the given date if it is selectable and not yet selected. * Does nothing otherwise. * If this operation changes the current selection, it will fire a * DateSelectionEvent of type DATES_SET. * * @param date the Date to select, must not be null. */ protected void setSelection(Date date) { Contract.asNotNull(date, "date must not be null"); if (isSelectedStrict(date)) return; if (isSelectable(date)) { selectedDates.clear(); // PENDING JW: use normalized selectedDates.add(date); fireValueChanged(EventType.DATES_SET); } }
/** * Selects the given date if it is selectable and not yet selected. * Does nothing otherwise. * If this operation changes the current selection, it will fire a * DateSelectionEvent of type DATES_SET. * * @param date the Date to select, must not be null. */ protected void setSelection(Date date) { Contract.asNotNull(date, "date must not be null"); if (isSelectedStrict(date)) return; if (isSelectable(date)) { selectedDates.clear(); // PENDING JW: use normalized selectedDates.add(date); fireValueChanged(EventType.DATES_SET); } }
/** * Selects the given date if it is selectable and not yet selected. * Does nothing otherwise. * If this operation changes the current selection, it will fire a * DateSelectionEvent of type DATES_SET. * * @param date the Date to select, must not be null. */ protected void setSelection(Date date) { Contract.asNotNull(date, "date must not be null"); if (isSelectedStrict(date)) return; if (isSelectable(date)) { selectedDates.clear(); // PENDING JW: use normalized selectedDates.add(date); fireValueChanged(EventType.DATES_SET); } }
/** * Selects the given date if it is selectable and not yet selected. * Does nothing otherwise. * If this operation changes the current selection, it will fire a * DateSelectionEvent of type DATES_SET. * * @param date the Date to select, must not be null. */ protected void setSelection(Date date) { Contract.asNotNull(date, "date must not be null"); if (isSelectedStrict(date)) return; if (isSelectable(date)) { selectedDates.clear(); // PENDING JW: use normalized selectedDates.add(date); fireValueChanged(EventType.DATES_SET); } }
/** * Selects the given date if it is selectable and not yet selected. * Does nothing otherwise. * If this operation changes the current selection, it will fire a * DateSelectionEvent of type DATES_SET. * * @param date the Date to select, must not be null. */ protected void setSelection(Date date) { Contract.asNotNull(date, "date must not be null"); if (isSelectedStrict(date)) return; if (isSelectable(date)) { selectedDates.clear(); // PENDING JW: use normalized selectedDates.add(date); fireValueChanged(EventType.DATES_SET); } }