List of usage examples for javax.swing RowFilter orFilter
public static <M, I> RowFilter<M, I> orFilter(Iterable<? extends RowFilter<? super M, ? super I>> filters)
RowFilter
that includes entries if any of the supplied filters includes the entry. From source file:pl.otros.vfs.browser.VfsBrowser.java
License:asdf
private RowFilter<VfsTableModel, Integer> createFilter() { RowFilter<VfsTableModel, Integer> regexFilter = new VfsTableModelFileNameRowFilter(filterField); RowFilter<VfsTableModel, Integer> hiddenFilter = new VfsTableModelHiddenFileRowFilter(showHidden); RowFilter<VfsTableModel, Integer> alwaysShowParent = new VfsTableModelShowParentRowFilter(); @SuppressWarnings("unchecked") RowFilter<VfsTableModel, Integer> filters = RowFilter.andFilter(Arrays.asList(regexFilter, hiddenFilter)); filters = RowFilter.orFilter(Arrays.asList(filters, alwaysShowParent)); return filters; }