wt.clients.beans.table
Class WTTableModel.TableRowModel
java.lang.Object
javax.swing.table.AbstractTableModel
wt.clients.beans.table.WTAbstractTableModel
wt.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
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 |
WTTableModel.TableRowModel
public WTTableModel.TableRowModel()
- Create the table model
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 upcolumnIndex
- 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()