1
2
3
4
5
6
7
8
9
10 package nl.tudelft.simulation.introspection.table;
11
12 import javax.swing.table.TableModel;
13
14 /***
15 * An interface that defines methods for adding and deleting rows from a
16 * tablemodel.
17 * <p>
18 * (c) copyright 2003-2004 <a href="http://www.simulation.tudelft.nl">Delft
19 * University of Technology </a>, the Netherlands. <br>
20 * See for project information <a
21 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
22 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
23 * License (GPL) </a>, no warranty <br>
24 *
25 * @author <a
26 * href="http://web.eur.nl/fbk/dep/dep1/Introduction/Staff/People/Lang">Niels
27 * Lang </a><a
28 * href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
29 * Jacobs </a>
30 * @version 1.1 Apr 15, 2004
31 * @since 1.4
32 */
33 public interface DynamicTableModel extends TableModel
34 {
35 /***
36 * Deletes a specific row from the TableModel.
37 *
38 * @param index The (TableModel) index of the row to be deleted
39 */
40 void deleteRow(int index);
41
42 /***
43 * Deletes a specific set of rows from the TableModel.
44 *
45 * @param indices The (TableModel) indices of the rows to be deleted
46 */
47 void deleteRows(int[] indices);
48
49 /***
50 * Creates a new row at the end of the TableModel.
51 */
52 void createRow();
53
54 /***
55 * Creates a number of new rows at the end of the TableModel
56 *
57 * @param amount The number of rows to be created.
58 */
59 void createRows(int amount);
60 }