filtered collection update method now public

This commit is contained in:
Gavriil Sitnikov 2016-09-07 01:49:24 +03:00
parent c82002c659
commit 4ee8b3bb02
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ public class ObservableFilteredList<TItem> extends ObservableCollection<TItem> {
updateCollections();
}
private void updateCollections() {
/**
* Updates collection by current filter. Use it if some item's parameter which is important for filtering have changing.
*/
public void updateCollections() {
if (sourceCollection == null) {
if (filteredList != null) {
final Change<TItem> change = new Change<>(Change.Type.REMOVED, filteredList, 0);