Getting to the data

Top  Previous  Next

 

After filtering, some (or all) of the original rows may not be available to the table. You can retrieve this transformation by calling the method:

 

public int[] getFilteredIndexes();

 

, which will return an int array showing the relation between the original and the filtered data.

 

Also, since FilterTableModel extends ListTableMap, the method:

 

public java.util.List getRows();

 

will return the transformed filtered list of object rows.

 

Furthermore, the methods:

 

public Object getValueAt(int row, int column);

public boolean isCellEditable(int row, int column);

public void setValueAt(Object aValue, int row, int column);

public void removeRow(int row);

public void removeRows(int[] deletedRows);

 

all operate on the filtered data.

 

The original 'unfiltered' data can be retrieved by using ListTableModel's method:

 

public ListTableModel getModel();