|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableModel
A representation of table data.
| Method Summary | |
|---|---|
void |
addTableModelListener(TableModelListener l)
Adds a listener that will be notified of changes to the table model. |
java.lang.Class |
getColumnClass(int column)
Returns the most-specific class 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. |
boolean |
isRowEditable(int row)
When a table model supports editing of data, this method will be called to query if a row is currently editable. |
void |
removeTableModelListener(TableModelListener l)
Removes a listener from being notified of changes to the table model. |
| Method Detail |
|---|
void addTableModelListener(TableModelListener l)
l - The listener to add.java.lang.Class getColumnClass(int column)
column - The column number whose class is to be returned.
int getColumnCount()
java.lang.String getColumnName(int column)
column - The column number whose name is to be returned.
int getRowCount()
java.lang.Object getValueAt(int column,
int row)
column - The column of the value to return.row - The row of the value to return.void removeTableModelListener(TableModelListener l)
l - The listener to remove.boolean isRowEditable(int row)
When a table model supports editing of data, this method will be called to query if a row is currently editable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||