public interface TableModel
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addTableModelListener(TableModelListener l)
Adds a listener that will be notified of changes.
|
java.lang.Class |
getColumnClass(int column)
Returns the most-specific class of objects found in a given table
column.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
java.lang.String |
getColumnName(int column)
Returns the name of the specified column number.
|
int |
getRowCount()
Returns the number of rows in the table.
|
java.lang.Object |
getValueAt(int column,
int row)
Returns the value found at the given coordinate within the table.
|
void |
removeTableModelListener(TableModelListener l)
Removes a listener from being notified of changes.
|
void addTableModelListener(TableModelListener l)
l - the listener to addjava.lang.Class getColumnClass(int column)
column - the column index (0-based)int getColumnCount()
java.lang.String getColumnName(int column)
column - the column index (0-based)int getRowCount()
java.lang.Object getValueAt(int column,
int row)
column - the column index (0-based)row - the row index (0-based)void removeTableModelListener(TableModelListener l)
l - the listener to remove