SPT RWT Application API

com.sptci.rwt.webui
Class RowsTableModel

java.lang.Object
  extended by nextapp.echo2.app.table.AbstractTableModel
      extended by com.sptci.echo2.table.AbstractTableModel<D>
          extended by com.sptci.echo2.table.TableModel<D>
              extended by com.sptci.echo2.table.DefaultPageableTableModel<Row>
                  extended by com.sptci.rwt.webui.RowTableModel
                      extended by com.sptci.rwt.webui.RowsTableModel
All Implemented Interfaces:
com.sptci.echo2.table.PageableTableModel, Serializable, TableModel

public class RowsTableModel
extends RowTableModel

A custom table model used to display Rows object. This is used by the BatchQueryExecutorView to display each result obtained by executing a statement in the batch specified.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: RowsTableModel.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-12
See Also:
Serialized Form

Field Summary
private  List<Row> rows
          The list used as the backing store for this model.
 
Fields inherited from class com.sptci.rwt.webui.RowTableModel
manager, maxColumnLength, maxRows, query
 
Fields inherited from class com.sptci.echo2.table.DefaultPageableTableModel
page, pageSize, totalRows
 
Fields inherited from class com.sptci.echo2.table.TableModel
columns, data
 
Fields inherited from class com.sptci.echo2.table.AbstractTableModel
sortDirection, sortIndex
 
Constructor Summary
RowsTableModel(Rows rows)
          Create a new instance of the table model using the specified model object.
 
Method Summary
protected  void fetchData()
          Update the TableModel.data with the current page of data from rows.
 
Methods inherited from class com.sptci.rwt.webui.RowTableModel
getColumnName, getManager, getMaxColumnLength, getMaxRows, getQuery, getTotalRows, getValueAt, processColumns, setPage, setPageSize
 
Methods inherited from class com.sptci.echo2.table.DefaultPageableTableModel
getPage, getPageSize, getTotalPages
 
Methods inherited from class com.sptci.echo2.table.TableModel
addRow, deleteRow, deleteRow, getColumnAnnotations, getColumnClass, getColumnCount, getObjectAt, getRowCount, init, insertRow, processColumnAnnotations, processColumnsAnnotation, processFields, updateRow
 
Methods inherited from class com.sptci.echo2.table.AbstractTableModel
getSortDirection
 
Methods inherited from class nextapp.echo2.app.table.AbstractTableModel
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getEventListenerList, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

private final List<Row> rows
The list used as the backing store for this model.

Since:
Version 1.2
Constructor Detail

RowsTableModel

public RowsTableModel(Rows rows)
Create a new instance of the table model using the specified model object.

Parameters:
rows - The data backing this table model.
See Also:
RowTableModel.setPageSize(int), RowTableModel.processColumns()
Method Detail

fetchData

protected void fetchData()
Update the TableModel.data with the current page of data from rows.

Overrides:
fetchData in class RowTableModel
Since:
Version 1.2
See Also:
AbstractTableModel.fireTableDataChanged(), QueryExecutor

SPT RWT Application API