|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TableRow
TableRow presents a row in a table.
| Method Summary | |
|---|---|
int |
compareTo(TableRow row,
int valueIndex)
Compares this table row with the specified table row for order. |
TableRowModel |
getParentModel()
The parent model which contains this row. |
java.lang.Object |
getValueAt(int column)
Returns value at column index. |
int |
getValueCount()
Returns the number values int this row. |
boolean |
isValueSettable(int index)
Return true if value at specified column index is editable. |
void |
setParentModel(TableRowModel model)
This method is called when row is added to model. |
| Method Detail |
|---|
java.lang.Object getValueAt(int column)
column - the column index
int getValueCount()
void setParentModel(TableRowModel model)
null.
Row can call on parent model method
fireRowUpdate(TableRow,int) when want to notify model
listeners (specially the JTable) about data changes.
model - the model to which row was added, or null,
when row is removed form modelTableRowModel.fireRowUpdate(TableRow, int)TableRowModel getParentModel()
boolean isValueSettable(int index)
true if value at specified column index is editable.
index - the column index
true if value at the specified column index is
editable
int compareTo(TableRow row,
int valueIndex)
row - a row, to which it is comparedvalueIndex - the index of value, which is compared in row
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||