KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > table > TableModel


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: TableModel.java,v $
11    Revision 1.4 2003/12/14 09:13:39 bobintetley
12    Added CVS log to source headers
13
14 */

15
16 package swingwtx.swing.table;
17
18 import swingwtx.swing.event.*;
19
20 public interface TableModel
21 {
22
23     public int getRowCount();
24     public int getColumnCount();
25     public String JavaDoc getColumnName(int columnIndex);
26     public Class JavaDoc getColumnClass(int columnIndex);
27     public boolean isCellEditable(int rowIndex, int columnIndex);
28     public Object JavaDoc getValueAt(int rowIndex, int columnIndex);
29     public void setValueAt(Object JavaDoc aValue, int rowIndex, int columnIndex);
30     public void addTableModelListener(TableModelListener l);
31     public void removeTableModelListener(TableModelListener l);
32 }
33
34
Popular Tags