// Record.java
// A simple data structure for use with the PagingModel demo.
//
public class Record {
static String headers[] = { "Record Number", "Batch Number", "Reserved" };
static int counter;
String[] data;
public Record() {
data = new String[] { "" + (counter++), "" + System.currentTimeMillis(),
"Reserved" };
}
public String getValueAt(int i) { return data[i]; }
public static String getColumnName(int i) { return headers[i]; }
public static int getColumnCount() { return headers.length; }
}
|