org.pentaho.platform.plugin.action.jfreereport.helper
Class PentahoTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.pentaho.platform.plugin.action.jfreereport.helper.PentahoTableModel
All Implemented Interfaces:
Serializable, TableModel, org.pentaho.reporting.engine.classic.core.util.CloseableTableModel
Direct Known Subclasses:
PentahoTableModel

public class PentahoTableModel
extends AbstractTableModel
implements org.pentaho.reporting.engine.classic.core.util.CloseableTableModel

See Also:
Serialized Form

Constructor Summary
PentahoTableModel(org.pentaho.commons.connection.IPentahoResultSet rs)
           
 
Method Summary
 void close()
           
 int getColumnCount()
           
 String getColumnName(int columnNumber)
           
 org.apache.commons.logging.Log getLogger()
          returns the logger object
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

PentahoTableModel

public PentahoTableModel(org.pentaho.commons.connection.IPentahoResultSet rs)
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()
returns the logger object

Returns:
log

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Specified by:
getValueAt in interface TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getColumnName

public String getColumnName(int columnNumber)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

close

public void close()
Specified by:
close in interface org.pentaho.reporting.engine.classic.core.util.CloseableTableModel