Interface FastComparableTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
BulletinBoard, DestinationFilter, DXTableModel, FirstDigipeatFilterUI, HeardStationsTableModel, LastDigipeatFilterUI, LocalObjectTableModel, MessageModel, ObjectPacketModel, OutstandingMessageTableModel, RawPacketTableModel, SendingStationFilter, StationListTableModel

public interface FastComparableTableModel extends TableModel
This interface defines a TableModel that can compare rows column-by-column without having to create transient Objects for comparison.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • compareRows

      int compareRows(int rowIndex1, int rowIndex2, int columnIndex)
      Compare the selected column of the two rows.
      Parameters:
      rowIndex1 - zero-based model row index of first row to compare
      rowIndex2 - zero-based model row index of second row to compare
      columnIndex - zero-based model column index of column to compare
      Returns:
      +1 if the 1st row's column is after the 2nd row's column, -1 if before, or 0 if equal precedence