INNER CODE UNIT · Java
filterTable
evrencoskun/TableView · app/src/main/java/com/evrencoskun/tableviewsample/MainFragment.java:150
public void filterTable(@NonNull String filter) {
// Sets a filter to the table, this will filter ALL the columns.
if (mTableFilter != null) {
mTableFilter.set(filter);
}
}
public void filterTableForMood(@NonNull String filter) {
// Sets a filter to the table, this will only filter a specific column.
// In the example data, this will filter the mood column.
if (mTableFilter != null) {
mTableFilter.set(TableViewModel.MOOD_COLUMN_INDEX, filter);
}
}
public void filterTableForGender(@NonNull String filter) {
// Sets a filter to the table, this will only filter a specific column.
// In the example data, this will filter the gender column.