org.jfree.report

Class TableReportData

Implemented Interfaces:
DataSet, ReportData

public class TableReportData
extends java.lang.Object
implements ReportData

Creation-Date: 19.02.2006, 17:00:10
Author:
Thomas Morgner

Fields inherited from interface org.jfree.report.ReportData

BEFORE_FIRST_ROW

Constructor Summary

TableReportData(TableModel tableModel)
TableReportData(TableModel tableModel, int start, int length)

Method Summary

void
close()
Object
get(int column)
int
getColumnCount()
String
getColumnName(int column)
int
getCursorPosition()
boolean
isAdvanceable()
This operation checks, whether a call to next will be likely to succeed.
boolean
isReadable()
boolean
next()
boolean
setCursorPosition(int row)

Constructor Details

TableReportData

public TableReportData(TableModel tableModel)

TableReportData

public TableReportData(TableModel tableModel,
                       int start,
                       int length)

Method Details

close

public void close()
            throws DataSourceException
Specified by:
close in interface ReportData

get

public Object get(int column)
            throws DataSourceException
Specified by:
get in interface DataSet

getColumnCount

public int getColumnCount()
            throws DataSourceException
Specified by:
getColumnCount in interface DataSet

getColumnName

public String getColumnName(int column)
            throws DataSourceException
Specified by:
getColumnName in interface DataSet

getCursorPosition

public int getCursorPosition()
            throws DataSourceException
Specified by:
getCursorPosition in interface ReportData

isAdvanceable

public boolean isAdvanceable()
            throws DataSourceException
This operation checks, whether a call to next will be likely to succeed. If there is a next data row, this should return true.
Specified by:
isAdvanceable in interface ReportData
Returns:

isReadable

public boolean isReadable()
            throws DataSourceException
Specified by:
isReadable in interface ReportData

next

public boolean next()
            throws DataSourceException
Specified by:
next in interface ReportData

setCursorPosition

public boolean setCursorPosition(int row)
            throws DataSourceException
Specified by:
setCursorPosition in interface ReportData