Interface ITableModel

All Superinterfaces:
TableModel

public interface ITableModel extends TableModel
Adds to the swing TableModel the posibility of add, remove and modify rows.

In the model there are no null rows, but cells with null are allowed.
When add, insert or modify rows you can send null, but the implementation will store a empty array or equivalent.

Author:
Javier Paniza
  • Method Details

    • addRow

      void addRow(Object[] rowData)
      Add a row at end.

      Parameters:
      rowData - Data to add, if null add a row which datas are null, but row itself is not null.
    • getRow

      Object[] getRow(int row)
      Return a array with data of indicated row.

      Returns:
      != null
    • insertRow

      void insertRow(int row, Object[] rowData)
      Insert the row in the indicated place.

      *

      Parameters:
      rowData - Data to insert, if null add a row which datas are null, but row itself is not null.
    • removeAllRows

      void removeAllRows()
    • removeRow

      void removeRow(int row)
    • setRow

      void setRow(int row, Object[] rowData)
      Set new values in the row.

      Parameters:
      rowData - Data to set, if null add a row which datas are null, but row itself is not null.