Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Interface PivotTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
DefaultPivotTableModel

public interface PivotTableModel
extends TableModel

PivotTableModel is PivotTable's data model.
There are three areas used in pivoting, the row header, column header and data area. PivotTableModel therefore consists of three sub-models, each corresponding to these areas.
1. RowAdapter: the model of the table's row header
2. ColumnAdapter: the model of the table's column header
3. DataModel: the model of the data area


Method Summary
 PivotColumnAdapter getColumnAdapter()
          Returns the model's column adapter.
 Class getColumnClass(int row, int column)
          Determines the class of the model's cell at coordinates row and column.
 PivotDataModel getDataModel()
          Retrieves the pivot data model that contains the actual data, excluding the row and column header.
 PivotRowAdapter getRowAdapter()
          Returns the model's row adapter.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getColumnAdapter

PivotColumnAdapter getColumnAdapter()
Returns the model's column adapter. This is the model of the table's column header.

Returns:
the column header's model

getColumnClass

Class getColumnClass(int row,
                     int column)
Determines the class of the model's cell at coordinates row and column.

Parameters:
row - the cell's row index
column - the cell's column index
Returns:
the class for the specified cell

getDataModel

PivotDataModel getDataModel()
Retrieves the pivot data model that contains the actual data, excluding the row and column header.

Returns:
the data model

getRowAdapter

PivotRowAdapter getRowAdapter()
Returns the model's row adapter. This is the model of the table's row header.

Returns:
the row header's table model

Copyright © 2011 Citra Technologies. All Rights Reserved.