FileDocCategorySizeDatePackage
Record.javaAPI DocExample537Tue Aug 25 09:11:22 BST 1998None

Record.java

// 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; }
}