|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.toolbox.ui.DataTable.DataQueryTableModel
A TableModel which gets its data from a DataQuery. This TableModel
is used in the DataTable.DataBuilderAdapter to iterate through the
query returned by the DataQueryBuilder and generate
rows for it on the screen.
| Field Summary |
| Fields inherited from interface com.arsdigita.bebop.table.TableModel |
versionId |
| Constructor Summary | |
DataTable.DataQueryTableModel(DataTable t,
DataQuery data,
String keyColumn)
Create a new DataQueryTableModel |
|
| Method Summary | |
int |
getColumnCount()
Return the number of columns this table model has. |
DataQuery |
getDataQuery()
Return the original DataQuery. |
Object |
getElementAt(int columnIndex)
Return the data element for the given column and the current row. |
Object |
getKeyAt(int columnIndex)
Return the key for the given column and the current row. |
boolean |
nextRow()
Move to the next row and return true if the model is now positioned on a valid row. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataTable.DataQueryTableModel(DataTable t,
DataQuery data,
String keyColumn)
DataQueryTableModel
t - the DataTable which needs this modeldata - the to be wrappedkeyColumn - the name of the column in the query which represents
the primary key| Method Detail |
public int getColumnCount()
TableModel
getColumnCount in interface TableModelpublic boolean nextRow()
TableModelgetElementAt and getKeyAt.
If this method returns true, subsequent calls to
getElementAt and getKeyAt have
to succeed and return non-null objects. If this method returns
false, the table assumes that it has traversed all the
data contained in this model.
nextRow in interface TableModeltrue if the model is positioned on a valid rowpublic Object getElementAt(int columnIndex)
TableModelvalue argument without modifications.
getElementAt in interface TableModelcolumnIndex - the number of the column for which to get data
TableCellRendererpublic Object getKeyAt(int columnIndex)
TableModelkey
argument.
getKeyAt in interface TableModelcolumnIndex - the number of the column for which to get data
TableCellRendererpublic DataQuery getDataQuery()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||