org.jfree.report.modules.misc.tablemodel
Class JoiningTableModel
AbstractTableModel
org.jfree.report.modules.misc.tablemodel.JoiningTableModel
extends AbstractTableModel
========================================
JFreeReport : a free Java report library
========================================
Project Info: http://reporting.pentaho.org/
(C) Copyright 2000-2007, by Object Refinery Limited, Pentaho Corporation and Contributors.
This library is free software; you can redistribute it and/or modify it under the terms
of the GNU Lesser General Public License as published by the Free Software Foundation;
either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this
library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307, USA.
[Java is a trademark or registered trademark of Sun Microsystems, Inc.
in the United States and other countries.]
------------
$Id: JoiningTableModel.java 3525 2007-10-16 11:43:48Z tmorgner $
------------
(C) Copyright 2000-2005, by Object Refinery Limited.
(C) Copyright 2005-2007, by Pentaho Corporation.
addTableModel
public void addTableModel(String prefix,
TableModel model)
getColumnClass
public Class getColumnClass(int columnIndex)
Returns Object.class
regardless of columnIndex
.
columnIndex
- the column being queried
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.
- the number or columns in the model
getColumnName
public String getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z,
AA, AB, etc. If column
cannot be found, returns an empty string.
column
- the column being queried
- a string containing the default name of
column
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.
- the number or rows in the model
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
Returns an attribute value for the cell at columnIndex and rowIndex.
rowIndex
- the row whose value is to be looked upcolumnIndex
- the column whose value is to be looked up
- the value Object at the specified cell
isCellEditable
public final boolean isCellEditable(int rowIndex,
int columnIndex)
Returns false. JFreeReport does not like changing cells.
rowIndex
- the row being queriedcolumnIndex
- the column being queried