/** * Determines whether a change to the given property of the given element * would require refiltering and/or resorting. * <p> * This method is internal to the framework; subclassers should not call * this method. * </p> * * @param element * the element * @param property * the property * @return <code>true</code> if refiltering is required, and * <code>false</code> otherwise */ protected boolean needsRefilter(Object element, String property) { if (sorter != null && sorter.isSorterProperty(element, property)) { return true; } if (filters != null) { for (int i = 0, n = filters.size(); i < n; ++i) { ViewerFilter filter = filters.get(i); if (filter.isFilterProperty(element, property)) { return true; } } } return false; }
/** * Determines whether a change to the given property of the given element * would require refiltering and/or resorting. * <p> * This method is internal to the framework; subclassers should not call * this method. * </p> * * @param element * the element * @param property * the property * @return <code>true</code> if refiltering is required, and * <code>false</code> otherwise */ protected boolean needsRefilter(Object element, String property) { if (sorter != null && sorter.isSorterProperty(element, property)) { return true; } if (filters != null) { for (int i = 0, n = filters.size(); i < n; ++i) { ViewerFilter filter = (ViewerFilter) filters.get(i); if (filter.isFilterProperty(element, property)) { return true; } } } return false; }
/** * Determines whether a change to the given property of the given element * would require refiltering and/or resorting. * <p> * This method is internal to the framework; subclassers should not call * this method. * </p> * * @param element * the element * @param property * the property * @return <code>true</code> if refiltering is required, and * <code>false</code> otherwise */ protected boolean needsRefilter(Object element, String property) { if (sorter != null && sorter.isSorterProperty(element, property)) { return true; } if (filters != null) { for (int i = 0, n = filters.size(); i < n; ++i) { ViewerFilter filter = (ViewerFilter) filters.get(i); if (filter.isFilterProperty(element, property)) { return true; } } } return false; }