wt.clients.beans.table
Class WTTableModel.TableRowModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bywt.clients.beans.table.WTAbstractTableModel
          extended bywt.clients.beans.table.WTTableModel.TableRowModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
WTTableModel

public class WTTableModel.TableRowModel
extends WTAbstractTableModel

The table row model provide a table view of the data used for the grouping mechanism.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class wt.clients.beans.table.WTAbstractTableModel
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
WTTableModel.TableRowModel()
          Create the table model
 
Method Summary
 int getColumnCount()
          Returns the number of columns managed by the data source object.
 int getRowCount()
          Returns the number of records managed by the data source object.
 Object getValueAt(int rowIndex, int columnIndex)
          Returns an attribute value for the cell at columnIndex and rowIndex.
 void refreshModel()
          Force the refresh of the table.
 
Methods inherited from class wt.clients.beans.table.WTAbstractTableModel
addColumn, addColumns, getColumn, getColumnClass, getColumnName, getColumns, getHeaderKeys, getHeaders, getHeaderSizes, getTableColumnModel, removeColumn, setTableColumnModel
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTTableModel.TableRowModel

public WTTableModel.TableRowModel()
Create the table model

Method Detail

refreshModel

public void refreshModel()
Force the refresh of the table.


getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Returns an attribute value for the cell at columnIndex and rowIndex.

Parameters:
rowIndex - the row whose value is to be looked up
columnIndex - the column whose value is to be looked up
Returns:
the value Object at the specified cell

getRowCount

public int getRowCount()
Returns the number of records managed by the data source object. A JTable uses this method to determine how many rows it should create and display. This method should be quick, as it is call by JTable quite frequently.

Returns:
the number or rows in the model
See Also:
getColumnCount()

getColumnCount

public int getColumnCount()
Returns the number of columns managed by the data source object. A JTable uses this method to determine how many columns it should create and display on initialization.

Specified by:
getColumnCount in interface TableModel
Overrides:
getColumnCount in class WTAbstractTableModel
Returns:
the number or columns in the model
See Also:
getRowCount()