3 /* Copyright: Thomas McGlynn 1997-1998.
4 * This code may be used for any purpose, non-commercial
5 * or commercial so long as this copyright notice is retained
6 * in the source code or included in or referred to in any
9 /** This interface defines the properties that
10 * a generic table should have.
12 public interface DataTable {
14 public abstract void setRow(int row, Object newRow)
15 throws TableException;
17 public abstract Object getRow(int row);
19 public abstract void setColumn(int column, Object newColumn)
20 throws TableException;
22 public abstract Object getColumn(int column);
24 public abstract void setElement(int row, int col, Object newElement)
25 throws TableException;
27 public abstract Object getElement(int row, int col);
29 public abstract int getNRows();
31 public abstract int getNCols();