/** * {@inheritDoc} */ @Override public void clearSelection() { if (isSelectionEmpty()) return; selectedDates.clear(); fireValueChanged(EventType.SELECTION_CLEARED); }
/** * {@inheritDoc} */ public void clearSelection() { if (isSelectionEmpty()) return; selectedDates.clear(); fireValueChanged(EventType.SELECTION_CLEARED); }
/** * {@inheritDoc} */ @Override public void clearSelection() { if (isSelectionEmpty()) return; selectedDates.clear(); fireValueChanged(EventType.SELECTION_CLEARED); }
/** * {@inheritDoc} */ @Override public void clearSelection() { if (isSelectionEmpty()) return; selectedDates.clear(); fireValueChanged(EventType.SELECTION_CLEARED); }
/** * {@inheritDoc} */ @Override public void clearSelection() { if (isSelectionEmpty()) return; selectedDates.clear(); fireValueChanged(EventType.SELECTION_CLEARED); }
/** * {@inheritDoc} */ public void setUnselectableDates(SortedSet<Date> unselectables) { Contract.asNotNull(unselectables, "unselectable dates must not be null"); this.unselectableDates.clear(); for (Date unselectableDate : unselectables) { removeSelectionInterval(unselectableDate, unselectableDate); unselectableDates.add(unselectableDate); } fireValueChanged(EventType.UNSELECTED_DATES_CHANGED); }
/** * {@inheritDoc} */ @Override public void setUnselectableDates(SortedSet<Date> unselectables) { Contract.asNotNull(unselectables, "unselectable dates must not be null"); this.unselectableDates.clear(); for (Date unselectableDate : unselectables) { removeSelectionInterval(unselectableDate, unselectableDate); unselectableDates.add(unselectableDate); } fireValueChanged(EventType.UNSELECTED_DATES_CHANGED); }
/** * {@inheritDoc} */ @Override public void setUnselectableDates(SortedSet<Date> unselectables) { Contract.asNotNull(unselectables, "unselectable dates must not be null"); this.unselectableDates.clear(); for (Date unselectableDate : unselectables) { removeSelectionInterval(unselectableDate, unselectableDate); unselectableDates.add(unselectableDate); } fireValueChanged(EventType.UNSELECTED_DATES_CHANGED); }
/** * {@inheritDoc} */ @Override public void setUnselectableDates(SortedSet<Date> unselectables) { Contract.asNotNull(unselectables, "unselectable dates must not be null"); this.unselectableDates.clear(); for (Date unselectableDate : unselectables) { removeSelectionInterval(unselectableDate, unselectableDate); unselectableDates.add(unselectableDate); } fireValueChanged(EventType.UNSELECTED_DATES_CHANGED); }
/** * {@inheritDoc} */ @Override public void setUnselectableDates(SortedSet<Date> unselectables) { Contract.asNotNull(unselectables, "unselectable dates must not be null"); this.unselectableDates.clear(); for (Date unselectableDate : unselectables) { removeSelectionInterval(unselectableDate, unselectableDate); unselectableDates.add(unselectableDate); } fireValueChanged(EventType.UNSELECTED_DATES_CHANGED); }
/** * {@inheritDoc} */ @Override public void removeSelectionInterval(Date startDate, Date endDate) { Contract.asNotNull(startDate, "date must not be null"); if (isSelectionEmpty()) return; if (isSelectionInInterval(startDate, endDate)) { selectedDates.clear(); fireValueChanged(EventType.DATES_REMOVED); } }
/** * {@inheritDoc} */ @Override public void removeSelectionInterval(Date startDate, Date endDate) { Contract.asNotNull(startDate, "date must not be null"); if (isSelectionEmpty()) return; if (isSelectionInInterval(startDate, endDate)) { selectedDates.clear(); fireValueChanged(EventType.DATES_REMOVED); } }
/** * {@inheritDoc} */ public void removeSelectionInterval(Date startDate, Date endDate) { Contract.asNotNull(startDate, "date must not be null"); if (isSelectionEmpty()) return; if (isSelectionInInterval(startDate, endDate)) { selectedDates.clear(); fireValueChanged(EventType.DATES_REMOVED); } }
/** * {@inheritDoc} */ @Override public void removeSelectionInterval(Date startDate, Date endDate) { Contract.asNotNull(startDate, "date must not be null"); if (isSelectionEmpty()) return; if (isSelectionInInterval(startDate, endDate)) { selectedDates.clear(); fireValueChanged(EventType.DATES_REMOVED); } }
/** * {@inheritDoc} */ @Override public void removeSelectionInterval(Date startDate, Date endDate) { Contract.asNotNull(startDate, "date must not be null"); if (isSelectionEmpty()) return; if (isSelectionInInterval(startDate, endDate)) { selectedDates.clear(); fireValueChanged(EventType.DATES_REMOVED); } }
/** * 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); } }