public interface TableModel
| Modifier and Type | Method and Description |
|---|---|
void |
addDataChangeListener(DataChangedListener d)
Adds a listener to the data changed event
|
int |
getColumnCount()
Returns the number of columns in the table
|
String |
getColumnName(int i)
Returns the name of the column at the given offset
|
int |
getRowCount()
Returns the number of rows in the table
|
Object |
getValueAt(int row,
int column)
Returns the value of the cell at the given location
|
boolean |
isCellEditable(int row,
int column)
Returns true if the cell at the given location is an editable cell
|
void |
removeDataChangeListener(DataChangedListener d)
Removes a listener to the data changed event
|
void |
setValueAt(int row,
int column,
Object o)
Sets the value of the cell at the given location
|
int getRowCount()
int getColumnCount()
String getColumnName(int i)
i - the offset for the column nameboolean isCellEditable(int row,
int column)
row - the cell rowcolumn - the cell columnObject getValueAt(int row, int column)
row - the cell rowcolumn - the cell columnvoid setValueAt(int row,
int column,
Object o)
row - the cell rowcolumn - the cell columno - the value of the cell at the given locationvoid addDataChangeListener(DataChangedListener d)
d - the new listenervoid removeDataChangeListener(DataChangedListener d)
d - the listener to remove