Package com.illumon.iris.gui.table
Interface AutoFilterModel
- All Known Implementing Classes:
DBTableModel,FilterSortPivotWidget,IrisTreeTableModel
public interface AutoFilterModel
Interface for models that support auto filter
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for listening to a data requeststatic interfaceInterface for a data request handler -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.dataobjects.WColumnSetGets teh column set for the model.Gets the filter strategy.intgetInitialFetchSize(String column) Get the number of unique values to initially fetch for the specified column.booleanisFilterable(String column) Checks if a given column is filterable.requestAutoFilterData(String columnName, int maxUniqueValues, AutoFilterModel.AutoFilterListener listener) Requests auto filter data for a given column name.requestMoreAutoFilterData(String columnName, AutoFilterModel.AutoFilterListener listener) Requests more data for the given column.
-
Method Details
-
getColumnSet
com.fishlib.dataobjects.WColumnSet getColumnSet()Gets teh column set for the model.- Returns:
- the column set
-
isFilterable
Checks if a given column is filterable.- Parameters:
column- the name of the column to check- Returns:
- true if it is filterable, false otherwise
-
getInitialFetchSize
Get the number of unique values to initially fetch for the specified column.- Parameters:
column- The column to get the fetch size for- Returns:
- The number of unique values to fetch
-
getFilterStrategy
FilterStrategyImpl getFilterStrategy()Gets the filter strategy.- Returns:
- the filter strategy
-
requestAutoFilterData
AutoFilterModel.AutoFilterRequestHandler requestAutoFilterData(String columnName, int maxUniqueValues, AutoFilterModel.AutoFilterListener listener) Requests auto filter data for a given column name.- Parameters:
columnName- the name of the columnmaxUniqueValues- the maximum number of unique values to returnlistener- a listener for the data- Returns:
- a handler for the request
-
requestMoreAutoFilterData
AutoFilterModel.AutoFilterRequestHandler requestMoreAutoFilterData(String columnName, AutoFilterModel.AutoFilterListener listener) Requests more data for the given column.- Parameters:
columnName- the name of the columnlistener- a listener for the data- Returns:
- a handler for the request
-