|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableModel
The table and table model class are complimentry classes allowing the quick construction of tabular data controls. The table model represents the data source according to which the table is constructed.
Method Summary | |
---|---|
void |
addDataChangeListener(DataChangedListener d)
Adds a listener to the data changed event |
int |
getColumnCount()
Returns the number of columns in the table |
java.lang.String |
getColumnName(int i)
Returns the name of the column at the given offset |
int |
getRowCount()
Returns the number of rows in the table |
java.lang.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,
java.lang.Object o)
Sets the value of the cell at the given location |
Method Detail |
---|
int getRowCount()
int getColumnCount()
java.lang.String getColumnName(int i)
i
- the offset for the column name
boolean isCellEditable(int row, int column)
row
- the cell rowcolumn
- the cell column
java.lang.Object getValueAt(int row, int column)
row
- the cell rowcolumn
- the cell column
void setValueAt(int row, int column, java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |