nl.tudelft.simulation.introspection.table
Interface DynamicTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
CollectionTableModel

public interface DynamicTableModel
extends TableModel

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

(c) copyright 2002-2005-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , 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.
 boolean isRowEditable()
           
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

deleteRow

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

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

deleteRows

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

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


createRows

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.

isRowEditable

boolean isRowEditable()
Returns:
whether or not the rows in this model can be edited. If false, calls to create and delete methods will have no final result.


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