net.sf.jga.swing
public class SpreadsheetTableModel extends AbstractTableModel
There will likely be a Cell class that represents the boxes in the table: in addition to the functor, each cell will likely have a Format, and there is likely to be some bookkeeping state used in the recalculation logic. The first major problem to be solved before this class is really ready to go is how to represent Cell & Range references as functors.
The longer term problem that I intend to get to is a language that allows the user to enter formulas into this table. Until that is done, the these tables can only be built programatically (which is somewhat useful, but obviously less than optimal).
Copyright © 2003 David A. Hall
Constructor Summary | |
---|---|
SpreadsheetTableModel() | |
SpreadsheetTableModel(int rows, int cols) |
Method Summary | |
---|---|
int | getColumnCount() |
int | getRowCount() |
Object | getValueAt(int row, int col) |
void | setValueAt(Object value, int row, int col) |