Example usage for javax.swing RowFilter orFilter

List of usage examples for javax.swing RowFilter orFilter

Introduction

In this page you can find the example usage for javax.swing RowFilter orFilter.

Prototype

public static <M, I> RowFilter<M, I> orFilter(Iterable<? extends RowFilter<? super M, ? super I>> filters) 

Source Link

Document

Returns a RowFilter that includes entries if any of the supplied filters includes the entry.

Usage

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;
}