INNER CODE UNIT · Java
filterTableForGender
evrencoskun/TableView · app/src/main/java/com/evrencoskun/tableviewsample/MainFragment.java:165
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.
if (mTableFilter != null) {
mTableFilter.set(TableViewModel.GENDER_COLUMN_INDEX, filter);
}
}
// The following four methods below: nextTablePage(), previousTablePage(),
// goToTablePage(int page) and setTableItemsPerPage(int itemsPerPage)
// are for controlling the TableView pagination.
public void nextTablePage() {
if (mPagination != null) {
mPagination.nextPage();
}
}
public void previousTablePage() {