01: package org.osbl.client.wings.form;
02:
03: import org.wings.table.STableColumnModel;
04: import org.wingx.table.RefreshableModel;
05:
06: /**
07: * A TableModel that assumes, that its rows are bean style objects with identifiers. Furthermore it suspects, that the
08: * implementation has sufficient information to create a consistent table column model.
09: */
10: public interface ObjectTableModel extends RefreshableModel {
11: /**
12: * Create a table column model, that is consistent with this table model.
13: * @return a table column model.
14: */
15: STableColumnModel getColumnModel();
16:
17: /**
18: * Return the identifier of the row at the specified index.
19: * @param rowIndex
20: * @return the id of row <code>rowIndex</code>
21: */
22: Object getRowId(int rowIndex);
23: }
|