org.jfree.report.data

Class GlobalMasterRow

public final class GlobalMasterRow extends Object

This data row holds all statefull information from the datasources of the report.

When doing subreports, a datarow only has access to its own dataset and the columns from the next direct subreport, which have been marked as exported.

Author: Thomas Morgner

Method Summary
GlobalMasterRowadvance()
This advances the cursor by one row and updates the flags.
static GlobalMasterRowcreateReportRow(ReportContext reportContext)
static GlobalMasterRowcreateReportRow(GlobalMasterRow parentRow, ReportContext reportContext)
voiddataRowChanged(MasterDataRowChangeEvent chEvent)
A call back method to communicate structural changes back to the master rows.
GlobalMasterRowderive()
Derives an instance of this datarow.
ExpressionDataRowgetExpressionDataRow()
DataRowgetGlobalView()
ImportedVariablesDataRowgetImportedDataRow()
ParameterDataRowgetParameterDataRow()
GlobalMasterRowgetParentDataRow()
ReportDataRowgetReportDataRow()
booleanisAdvanceable()
voidsetExportedDataRow(ImportedVariablesDataRow importedDataRow)
voidsetParameterDataRow(ParameterDataRow parameterDataRow)
voidsetReportDataRow(ReportDataRow reportDataRow)

Method Detail

advance

public GlobalMasterRow advance()
This advances the cursor by one row and updates the flags.

Returns:

Throws: DataSourceException

createReportRow

public static GlobalMasterRow createReportRow(ReportContext reportContext)

createReportRow

public static GlobalMasterRow createReportRow(GlobalMasterRow parentRow, ReportContext reportContext)

dataRowChanged

public void dataRowChanged(MasterDataRowChangeEvent chEvent)
A call back method to communicate structural changes back to the master rows. (This is only called from the expression row, as all other datarows are static).

Parameters: chEvent

derive

public GlobalMasterRow derive()
Derives an instance of this datarow. That copy is completly disconnected from the original one and no change made to that copy affects the original datarow.

Returns: the derived datarow.

getExpressionDataRow

public ExpressionDataRow getExpressionDataRow()

getGlobalView

public DataRow getGlobalView()

getImportedDataRow

public ImportedVariablesDataRow getImportedDataRow()

getParameterDataRow

public ParameterDataRow getParameterDataRow()

getParentDataRow

public GlobalMasterRow getParentDataRow()

getReportDataRow

public ReportDataRow getReportDataRow()

isAdvanceable

public boolean isAdvanceable()

setExportedDataRow

public void setExportedDataRow(ImportedVariablesDataRow importedDataRow)

setParameterDataRow

public void setParameterDataRow(ParameterDataRow parameterDataRow)

setReportDataRow

public void setReportDataRow(ReportDataRow reportDataRow)