com.sciapp.table
Interface ReorderModel

All Known Implementing Classes:
FilterTableModel, ListTableMap, SortTableModel, TreeTableModel

public interface ReorderModel

The ReorderModel interface defines methods that will be used by TableModels in order to indicate how the rows of the table have been reordered after some manipulation occurs.


Method Summary
 void addReorderListener(ReorderListener l)
          Adds a ReorderListener that is notified each time a change to the data model occurs so that the table updates the selected rows accordingly.
 void fireRowsReordered(int[] changedIndices)
          Notifies listeners that the rows of the table have been reordered in some way.
 void removeReorderListener(ReorderListener l)
          Removes a listener from the list that is notified each time a reorder event is generated.
 

Method Detail

addReorderListener

void addReorderListener(ReorderListener l)
Adds a ReorderListener that is notified each time a change to the data model occurs so that the table updates the selected rows accordingly.

Parameters:
l - the ReorderListener

fireRowsReordered

void fireRowsReordered(int[] changedIndices)
Notifies listeners that the rows of the table have been reordered in some way.

Parameters:
changedIndices - int array indicating how the rows have been reordered.
See Also:
ReorderEvent

removeReorderListener

void removeReorderListener(ReorderListener l)
Removes a listener from the list that is notified each time a reorder event is generated.

Parameters:
l - the RearrangeListener