Interface FireTableModel

All Known Implementing Classes:
TrackedStationTableModel

public interface FireTableModel
This interface defines methods so a UI-independent object can forward data change events to a UI-specific table model. These methods match those defined by the Swing class AbstractTableModel, so UI classes extending that class can simply declare that they implement this interface.
Author:
Andrew Pavlin, KA2DDO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fireTableCellUpdated(int row, int column)
    Notifies all listeners that the value of the cell at [row, column] has been updated.
    void
    Notifies all listeners that all cell values in the table's rows may have changed.
    void
    fireTableRowsDeleted(int firstRow, int lastRow)
    Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been deleted.
    void
    fireTableRowsInserted(int firstRow, int lastRow)
    Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been inserted.
    void
    fireTableRowsUpdated(int firstRow, int lastRow)
    Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been updated.
    void
    Notifies all listeners that the table's structure has changed.
  • Method Details

    • fireTableDataChanged

      void fireTableDataChanged()
      Notifies all listeners that all cell values in the table's rows may have changed. The number of rows may also have changed and the table should redraw the table from scratch. The structure of the table (as in the order of the columns) is assumed to be the same.
    • fireTableStructureChanged

      void fireTableStructureChanged()
      Notifies all listeners that the table's structure has changed. The number of columns in the table, and the names and types of the new columns may be different from the previous state.
    • fireTableRowsInserted

      void fireTableRowsInserted(int firstRow, int lastRow)
      Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been inserted.
      Parameters:
      firstRow - the first row
      lastRow - the last row
    • fireTableRowsUpdated

      void fireTableRowsUpdated(int firstRow, int lastRow)
      Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been updated.
      Parameters:
      firstRow - the first row
      lastRow - the last row
    • fireTableRowsDeleted

      void fireTableRowsDeleted(int firstRow, int lastRow)
      Notifies all listeners that rows in the range [firstRow, lastRow], inclusive, have been deleted.
      Parameters:
      firstRow - the first row
      lastRow - the last row
    • fireTableCellUpdated

      void fireTableCellUpdated(int row, int column)
      Notifies all listeners that the value of the cell at [row, column] has been updated.
      Parameters:
      row - row of cell which has been updated
      column - column of cell which has been updated