nl.tudelft.simulation.introspection.table
Interface DynamicTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
CollectionTableModel

public interface DynamicTableModel
extends javax.swing.table.TableModel

An interface that defines methods for adding and deleting rows from a tablemodel.

(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.1 Apr 15, 2004
Author:
Niels Lang Peter Jacobs

Method Summary
 void createRow()
          Creates a new row at the end of the TableModel.
 void createRows(int amount)
          Creates a number of new rows at the end of the TableModel
 void deleteRow(int index)
          Deletes a specific row from the TableModel.
 void deleteRows(int[] indices)
          Deletes a specific set of rows from the TableModel.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

deleteRow

public void deleteRow(int index)
Deletes a specific row from the TableModel.

Parameters:
index - The (TableModel) index of the row to be deleted

deleteRows

public void deleteRows(int[] indices)
Deletes a specific set of rows from the TableModel.

Parameters:
indices - The (TableModel) indices of the rows to be deleted

createRow

public void createRow()
Creates a new row at the end of the TableModel.


createRows

public void createRows(int amount)
Creates a number of new rows at the end of the TableModel

Parameters:
amount - The number of rows to be created.


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.