KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > swing > data > TabularDataModel


1 /*
2  * TabularDataModel.java
3  *
4  * Created on February 24, 2005, 6:26 AM
5  */

6
7 package org.jdesktop.swing.data;
8
9 import java.util.List JavaDoc;
10
11 /**
12  *
13  * @author rbair
14  */

15 public interface TabularDataModel extends DataModel {
16     
17     /**
18      *
19      * @return integer containing the number of records accessible
20      * from this data model
21      */

22     public int getRecordCount();
23
24     public Object JavaDoc getValueAt(String JavaDoc fieldName, int index);
25     
26     public void setValueAt(String JavaDoc fieldName, int index, Object JavaDoc value);
27     
28     public void addTabularValueChangeListener(TabularValueChangeListener l);
29     
30     public void removeTabularValueChangeListener(TabularValueChangeListener l);
31     
32     public TabularValueChangeListener[] getTabularValueChangeListeners();
33 }
34
Popular Tags