|
Getting to the data |
Top Previous Next |
After sorting, the rows of the table have been reordered. In order to retrieve this transformation, you can call the method:
public int[] getSortedIndexes();
, which returns an int array showing the relation between the original and the sorted data.
Also, since SortTableModel extends ListTableMap, the method:
public java.util.List getRows();
will return the transformed sorted 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 sorted data.
The original 'unsorted' data can be retrieved by using ListTableModel's method:
public ListTableModel getModel();