|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.filter.tree.AbstractColumnFilterMapper
com.citra.filter.tree.NodeFilterMapper
com.citra.table.group.ColumnNodeFilterMapper
public class ColumnNodeFilterMapper
ColumnNodeFilterMapper is a FilterMapper for filtering a treetable column model at each node. This mapper is created and used by ColumnFilterHeaderModel.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.citra.filter.tree.AbstractColumnFilterMapper |
---|
AbstractColumnFilterMapper.ColumnFilterTreeTableModel |
Field Summary | |
---|---|
protected TreeTableColumnModel |
columnModel
the assigned treetable column model |
Fields inherited from class com.citra.filter.tree.AbstractColumnFilterMapper |
---|
ALL_STRING, columnFilterTreeTableModel |
Constructor Summary | |
---|---|
ColumnNodeFilterMapper(TreeTableColumnModel columnModel)
Constructs a ColumnNodeFilterMapper. |
Method Summary | |
---|---|
void |
applyFilters(FilterTreeTableModel ftm,
int[] excludedColumns)
Applies the stored filters to the supplied filterTreeTableModel ,
excluding a list of column indexes defined by excludedModelIndexes .
If excludedModelIndexes is null, or is empty, all stored filters are applied. |
void |
commitFilters(FilterTreeTableModel filterTreeTableModel,
Filter f,
int modelIndex)
Stores and commits the filters for the column modelIndex for which
filter expressions were previously made available to the user. |
protected TableFilter |
createNodeFilter(Object[] list)
Creates the table filter to assign. |
void |
filterCancelled()
Cancels the action of previously showing available filter expressions to the user. |
void |
filterVisible(int modelIndex,
CheckBoxTree tree,
TreeTableModel treeTableModel,
TreeTable table)
Method called when available filter expressions are made available to the user. |
protected Object[] |
getNodesFilter(TableFilter filter)
Retrieves the nodes that have been assigned to the table filter. |
TreeTableColumnModel |
getTreeTableColumnModel()
Returns the treetable column model. |
void |
setTreeTableColumnModel(TreeTableColumnModel columnModel)
Assigns a new treetable column model. |
Methods inherited from class com.citra.filter.tree.NodeFilterMapper |
---|
commitFilters, getFilteredColumns, hasFilter, removeFilters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TreeTableColumnModel columnModel
Constructor Detail |
---|
public ColumnNodeFilterMapper(TreeTableColumnModel columnModel)
Method Detail |
---|
public void applyFilters(FilterTreeTableModel ftm, int[] excludedColumns)
filterTreeTableModel
,
excluding a list of column indexes defined by excludedModelIndexes
.
If excludedModelIndexes
is null, or is empty, all stored filters are applied.
applyFilters
in interface ColumnFilterMapper
applyFilters
in class NodeFilterMapper
ftm
- the model to which the stored filters are appliedexcludedColumns
- an array of column indexes to exclude while filteringpublic void commitFilters(FilterTreeTableModel filterTreeTableModel, Filter f, int modelIndex)
modelIndex
for which
filter expressions were previously made available to the user.
commitFilters
in interface ColumnFilterMapper
commitFilters
in class NodeFilterMapper
filterTreeTableModel
- the model to which the filters are commitedf
- the filter to usemodelIndex
- the columnpublic void filterCancelled()
filterCancelled
in interface ColumnFilterMapper
filterCancelled
in class NodeFilterMapper
public void filterVisible(int modelIndex, CheckBoxTree tree, TreeTableModel treeTableModel, TreeTable table)
filterVisible
in interface ColumnFilterMapper
filterVisible
in class NodeFilterMapper
modelIndex
- the column for which filter expressions are showntree
- the tree that should be filled with a hierarchical filter expression structuretreeTableModel
- the data model that holds a hierarchical filter expression structuretable
- the treetable containing the structurepublic TreeTableColumnModel getTreeTableColumnModel()
public void setTreeTableColumnModel(TreeTableColumnModel columnModel)
columnModel
- the new column model to assignprotected TableFilter createNodeFilter(Object[] list)
createNodeFilter
in class NodeFilterMapper
list
- the list of objects to use as filter
protected Object[] getNodesFilter(TableFilter filter)
getNodesFilter
in class NodeFilterMapper
filter
- the table filter that was assigned at the node
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |