Package adams.gui.core
Interface TableWithColumnFilters
-
- All Known Implementing Classes:
InformativeStatisticFactory.Table,InstanceReportFactory.Table,InstancesTable,InstanceTable,ReportFactory.Table,SortableAndSearchableTable,SpreadSheetCellSelector.Table,SpreadSheetRowReportFactory.Table,SpreadSheetTable,XYSequenceTable
public interface TableWithColumnFiltersInterface for tables that can be filtered per column.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetColumnFilter(int column)Returns the filter for the column.booleanisAnyColumnFiltered()Returns whether there is at least one filter active.booleanisColumnFiltered(int column)Returns whether there is a filter active for the column.booleanisColumnFilterRegExp(int column)Returns whether the filter for the column is a regular expression.voidremoveAllColumnFilters()Removes all column filtersvoidremoveColumnFilter(int column)Removes any filter for the column.voidsetColumnFilter(int column, String filter, boolean isRegExp)Sets the filter for the column.
-
-
-
Method Detail
-
setColumnFilter
void setColumnFilter(int column, String filter, boolean isRegExp)Sets the filter for the column.- Parameters:
column- the column to filterfilter- the filter stringisRegExp- whether the filter is a regular expression
-
getColumnFilter
String getColumnFilter(int column)
Returns the filter for the column.- Parameters:
column- the column to query- Returns:
- the filter, null if none present
-
isColumnFilterRegExp
boolean isColumnFilterRegExp(int column)
Returns whether the filter for the column is a regular expression.- Parameters:
column- the column to query- Returns:
- true if filter set and regular expression
-
isColumnFiltered
boolean isColumnFiltered(int column)
Returns whether there is a filter active for the column.- Parameters:
column- the column to query- Returns:
- true if a filter is active
-
isAnyColumnFiltered
boolean isAnyColumnFiltered()
Returns whether there is at least one filter active.- Returns:
- true if at least one filter is active
-
removeColumnFilter
void removeColumnFilter(int column)
Removes any filter for the column.- Parameters:
column- the column to update
-
removeAllColumnFilters
void removeAllColumnFilters()
Removes all column filters
-
-