|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.tree.AbstractColumnFilterMapper
com.sciapp.filter.tree.NodeFilterMapper
public class NodeFilterMapper
NodeFilterMapper is a ColumnFilterMapper that allows users to uniquely identify which nodes to include when filtering.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sciapp.filter.tree.AbstractColumnFilterMapper |
---|
AbstractColumnFilterMapper.ColumnFilterTreeTableModel |
Field Summary |
---|
Fields inherited from class com.sciapp.filter.tree.AbstractColumnFilterMapper |
---|
ALL_STRING, columnFilterTreeTableModel |
Constructor Summary | |
---|---|
NodeFilterMapper()
Constructs a NodeFilterMapper. |
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 . |
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. |
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. |
int[] |
getFilteredColumns()
Returns an array of the columns that have filters. |
boolean |
hasFilter(int modelIndex)
Determines whether filters for the column modelIndex exist. |
boolean |
removeFilters(FilterTreeTableModel ftm,
int[] modelIndexes,
boolean commit)
Removes the stored filters for the supplied modelIndexes columns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeFilterMapper()
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.
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.
filterTreeTableModel
- the model to which the filters are commitedf
- the filter to usemodelIndex
- the columnpublic void filterCancelled()
public void filterVisible(int modelIndex, CheckBoxTree tree, TreeTableModel treeTableModel, TreeTable table)
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 int[] getFilteredColumns()
public boolean hasFilter(int modelIndex)
modelIndex
exist.
modelIndex
- the column
public boolean removeFilters(FilterTreeTableModel ftm, int[] modelIndexes, boolean commit)
modelIndexes
columns.
ftm
- the model from which the stored filters are removedmodelIndexes
- a list of columnscommit
- a flag indicating that the filter removal should be commited
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |