Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table
Interface ReorderModel

All Known Implementing Classes:
AbstractColumnFilterMapper.ColumnFilterTreeTableModel, AggregateTreeTableModel, CachedListTableModel, CachedTableModel, ComparableTreeTableModel, DefaultFilterTreeTableModel, DefaultMutableTreeTableModel, DefaultRemoteTableModel, DefaultSortTreeTableModel, DefaultTreeTableColumnModel, DirectoryTreeTableModel, DynamicTreeTableModel, FilterTableModel, LevelFilterMapper.DoubleTreeTableModelMap, ListTableMap, ListTableModelWrapper, ListTreeTableModel, MutableTreeTableModel, NodeTreeTableModelMap, ObjectTableModel, ObjectTreeTableModel, SortTableModel, TableMap, ThreadedListTableModel, TreeColumnModelMask, TreeTableColumnModelMap, TreeTableColumnModelMask, TreeTableModel, TreeTableModelMap, TreeTableModelMask, UniqueTreeTableModel

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 fireRowsMapped(int[] changedIndices)
          Notifies listeners that the rows of the table have been reordered according to the changedIndices map.
 void fireRowsReordered(ReorderEvent e)
          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

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

fireRowsMapped

void fireRowsMapped(int[] changedIndices)
Notifies listeners that the rows of the table have been reordered according to the changedIndices map.

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

fireRowsReordered

void fireRowsReordered(ReorderEvent e)
Notifies listeners that the rows of the table have been reordered in some way.

Parameters:
e - the reorder event.
See Also:
ReorderEvent

Copyright © 2005 Scientific Applications. All Rights Reserved.