|
ColumnFilterMapper |
Top Previous Next |
ColumnFilterMapper is used to present users with available filter expressions and to create, apply and remove filters for a FilterTreeTableModel.
The method that is called before filter expressions are made available to the user is:
public void filterVisible(int modelIndex, CheckBoxTree tree, TreeTableModel treeTableModel, TreeTable table);
The above method will prepare the TreeTable accordingly, with values from the given treeTableModel parameter.
Then, if the filter action is commited, the following method is called:
public void commitFilters(FilterTreeTableModel filterTreeTableModel, Filter filter, int modelIndex);
Otherwise, if the filter action is cancelled, the method below is called:
public void filterCancelled();
The stored filters can be applied any time for any FilterTreeTableModel with the method:
public void applyFilters(FilterTreeTableModel filterTreeTableModel, int[] excludedModelIndexes);
They can also be removed with:
public boolean removeFilters(int[] modelIndexes);
Additionally, to determine whether a given column has a filter:
public boolean hasFilter(int modelIndex);