Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » filter » [javadoc | source]
org.jfree.report.filter
public class: DataRowDataSource [javadoc | source]
java.lang.Object
   org.jfree.report.filter.DataRowDataSource

All Implemented Interfaces:
    DataSource

A DataSource that can access values from the 'data-row'. The data-row contains all values from the current row of the report's TableModel, plus the current values of the defined expressions and functions for the report.

The DataRowDataSource can either query the data-row directly using the specified field name or it can evaluate a given formula (which must be compatible to the OpenFormula specifications) to compute the value.

Fields and formulas are mutually exclusive; defining a field name autmatically undefines the formula and vice versa.

Constructor:
 public DataRowDataSource() 
 public DataRowDataSource(String column) 
    Constructs a new data source.
    Parameters:
    column - the name of the field, function or expression in the data-row.
Method from org.jfree.report.filter.DataRowDataSource Summary:
clone,   getDataSourceColumnName,   getFormula,   getValue,   setDataSourceColumnName,   setFormula
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.filter.DataRowDataSource Detail:
 public Object clone() throws CloneNotSupportedException 
    Clones the data source. A previously registered report definition is not inherited to the clone.
 public String getDataSourceColumnName() 
    Returns the data source column name.
 public String getFormula() 
    Returns the formula used to compute the value of the data source.
 public Object getValue(ExpressionRuntime runtime,
    Element element) 
    Returns the current value of the data source, obtained from a particular column in the data-row.
 public  void setDataSourceColumnName(String dataSourceColumnName) 
    Defines the name of the column in the datarow to be queried.
 public  void setFormula(String formula) 
    Defines the formula used to compute the value of this data source.