Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » demo » invoice » [javadoc | source]
org.jfree.report.demo.invoice
public class: InvoiceTableModel [javadoc | source]
java.lang.Object
   javax.swing.table.AbstractTableModel
      org.jfree.report.demo.invoice.InvoiceTableModel

All Implemented Interfaces:
    Serializable, TableModel

======================================== JFreeReport : a free Java report library ======================================== Project Info: http://www.jfree.org/jfreereport/index.html Project Lead: Thomas Morgner (taquera@sherito.org); (C) Copyright 2000-2004, by Simba Management Limited 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. ------------------------------ InvoiceTableModel.java ------------------------------ (C)opyright 2004, by Thomas Morgner and Contributors. Original Author: Thomas Morgner; Contributor(s): David Gilbert (for Simba Management Limited); $Id: InvoiceTableModel.java,v 1.1.2.2 2004/04/05 16:49:34 taqua Exp $ Changes ------------------------- 26.03.2004 : Initial version
Constructor:
 public InvoiceTableModel() 
Method from org.jfree.report.demo.invoice.InvoiceTableModel Summary:
addInvoice,   getColumnClass,   getColumnCount,   getColumnName,   getInvoice,   getRowCount,   getValueAt,   invalidateCaches,   removeInvoice
Methods from javax.swing.table.AbstractTableModel:
addTableModelListener,   findColumn,   fireTableCellUpdated,   fireTableChanged,   fireTableDataChanged,   fireTableRowsDeleted,   fireTableRowsInserted,   fireTableRowsUpdated,   fireTableStructureChanged,   getColumnClass,   getColumnName,   getListeners,   getTableModelListeners,   isCellEditable,   removeTableModelListener,   setValueAt
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.demo.invoice.InvoiceTableModel Detail:
 public  void addInvoice(Invoice invoice) 
 public Class getColumnClass(int columnIndex) 
    Returns Object.class regardless of columnIndex.
 public int getColumnCount() 
    Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.
 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.
 public Invoice getInvoice(int invoice) 
 public int getRowCount() 
    Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.
 public Object getValueAt(int rowIndex,
    int columnIndex) 
    Returns the value for the cell at columnIndex and rowIndex.
 public  void invalidateCaches() 
 public  void removeInvoice(Invoice invoice)