|
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.LevelFilterMapper
public class LevelFilterMapper
LevelFilterMapper is a ColumnFilterMapper that presents users with unique values to filter on each tree level.
| Nested Class Summary | |
|---|---|
protected class |
LevelFilterMapper.DoubleTreeTableModelMap
|
| 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 | |
|---|---|
LevelFilterMapper()
Constructs a LevelFilterMapper. |
|
| 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. |
protected void |
createDefaultComparators()
Creates default comparators for objects, strings and boolean values. |
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. |
Comparator |
getDefaultComparator(Class columnClass)
Returns the comparator to use for objects of the specified columnClass. |
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. |
void |
setDefaultComparator(Class columnClass,
Comparator comparator)
Sets the default comparator for columnClass. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LevelFilterMapper()
| 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 filtering
public 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 columnprotected void createDefaultComparators()
public 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 Comparator getDefaultComparator(Class columnClass)
columnClass - the class for which we want to find a comparator
public 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
public void setDefaultComparator(Class columnClass,
Comparator comparator)
columnClass - the Class for which a comparator we want to setcomparator - the comparator to set
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||