|
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.TableFilter
com.sciapp.filter.tree.NodeTableFilter
public class NodeTableFilter
NodeTableFilter is a table filter for filtering the rows of a TableModel based on a list of objects.
| Field Summary | |
|---|---|
protected Object[] |
nodes
the 'accepted' object list |
| Fields inherited from class com.sciapp.filter.TableFilter |
|---|
ALL_COLUMNS, column, filter |
| Constructor Summary | |
|---|---|
NodeTableFilter()
Constructs a NodeTableFilter. |
|
NodeTableFilter(Object[] nodes)
Constructs a NodeTableFilter. |
|
| Method Summary | |
|---|---|
boolean |
filter(ListTableModel model,
Object row)
Decides whether a particular row of a JTable will be filtered. |
boolean |
filter(TableModel model,
int rowIndex)
Decides whether a particular row of a JTable will be filtered. |
Object[] |
getNodes()
Returns a list of accepted nodes. |
void |
setNodes(Object[] nodes)
Assigns a new list of accepted nodes. |
| Methods inherited from class com.sciapp.filter.TableFilter |
|---|
getColumn, getFilter, setColumn, setFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object[] nodes
| Constructor Detail |
|---|
public NodeTableFilter()
public NodeTableFilter(Object[] nodes)
| Method Detail |
|---|
public boolean filter(ListTableModel model,
Object row)
filter in class TableFiltermodel - the ListTableModel that holds a reference to the tabular row datarow - the row of the table to filter, represented as an object
public boolean filter(TableModel model,
int rowIndex)
filter in class TableFiltermodel - the TableModel that holds the unfiltered row datarowIndex - the index of the row of the table to filter
public Object[] getNodes()
public void setNodes(Object[] nodes)
nodes - an array containing the nodes that are accepted by the table filter
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||