|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectTableModel<T>
an ObjectTableModel is a TableModel where any given row represents a certain
Object value.
Refreshable is used to tell the model that the underlying elements have changed;
this is typically implemented by simply calling AbstractTableModel.fireTableRowsUpdated(int, int)
| Method Summary | |
|---|---|
int |
getRowFor(T entry)
locates the row where the given entry can be found in this model |
T |
getRowValue(int row)
retrieves the value that is represented by the given row in this model. |
void |
setRowValues(Iterable<? extends T> updatedList)
allows to change the underlying table data based on the given collection. |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from interface com.antelmann.util.Refreshable |
|---|
refreshContent |
| Method Detail |
|---|
T getRowValue(int row)
int getRowFor(T entry)
void setRowValues(Iterable<? extends T> updatedList)
throws UnsupportedOperationException
UnsupportedOperationException - if this model doesn't allow such changes
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||