Class JoiningTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.jfree.report.modules.misc.tablemodel.JoiningTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTableModel
(String prefix, TableModel model) getColumnClass
(int columnIndex) ReturnsObject.class
regardless ofcolumnIndex
.int
Returns the number of columns managed by the data source object.getColumnName
(int column) Returns a default name for the column using spreadsheet conventions: A, B, C, ...int
Returns the number of records managed by the data source object.getTableModel
(int pos) int
getValueAt
(int rowIndex, int columnIndex) Returns an attribute value for the cell at columnIndex and rowIndex.final boolean
isCellEditable
(int rowIndex, int columnIndex) Returns false.void
removeTableModel
(TableModel model) protected void
protected void
protected void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
TABLE_PREFIX_COLUMN
- See Also:
-
-
Constructor Details
-
JoiningTableModel
public JoiningTableModel()
-
-
Method Details
-
addTableModel
-
removeTableModel
-
getTableModelCount
public int getTableModelCount() -
getTableModel
-
updateStructure
protected void updateStructure() -
updateRowCount
protected void updateRowCount() -
updateData
protected void updateData() -
getColumnClass
ReturnsObject.class
regardless ofcolumnIndex
.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
columnIndex
- the column being queried- Returns:
- the Object.class
-
getColumnName
Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. Ifcolumn
cannot be found, returns an empty string.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column being queried- Returns:
- a string containing the default name of
column
-
isCellEditable
public final boolean isCellEditable(int rowIndex, int columnIndex) Returns false. JFreeReport does not like changing cells.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
- the row being queriedcolumnIndex
- the column being queried- Returns:
- false
-
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.- Returns:
- the number or columns in the model
- See Also:
-
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:
-
getValueAt
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
-