com.jrefinery.report.filter
Interface DataRowConnectable

All Known Implementing Classes:
DataRowDataSource, DateFieldTemplate, ExpressionDataSource, FunctionDataSource, ImageFieldTemplate, ImageURLFieldTemplate, NumberFieldTemplate, ReportDataSource, ResourceFieldTemplate, ShapeFieldTemplate, StringFieldTemplate

public interface DataRowConnectable

Marks data sources that can be connected to the data row (for example, the DataRowDataSource).

Author:
Thomas Morgner
See Also:
DataRowDataSource

Method Summary
 void connectDataRow(DataRow row)
          Connects the DataRow to the data source.
 void disconnectDataRow(DataRow row)
          Releases the connection to the data row.
 

Method Detail

connectDataRow

public void connectDataRow(DataRow row)
                    throws java.lang.IllegalStateException
Connects the DataRow to the data source.

Parameters:
row - the data row.
Throws:
java.lang.IllegalStateException - if there is already a data row connected.

disconnectDataRow

public void disconnectDataRow(DataRow row)
                       throws java.lang.IllegalStateException
Releases the connection to the data row.

If no data row is connected, an IllegalStateException is thrown to indicate the programming error.

Parameters:
row - the data row.
Throws:
java.lang.IllegalStateException - if there is already a data row connected.