|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.filter.FunctionDataSource
The base class for a function data source. A function datasource does not query a function directly. The functions value is filled into this datasource by the current band to be printend when the bands populateElements() function is called.
The value for this element is retrieved from a function registered in the report's
function collection by the name defined in this elements function
property.
If the function name is invalid (no function registered by that name), null is returned.
Constructor Summary | |
FunctionDataSource()
Deprecated. Default constructor. |
|
FunctionDataSource(java.lang.String function)
Deprecated. Constructs a new function data source. |
Method Summary | |
java.lang.Object |
clone()
Deprecated. Clones this datasource. |
void |
connectDataRow(DataRow row)
Deprecated. Connects the DataRowBackend with the named DataSource or DataFilter. |
void |
disconnectDataRow(DataRow row)
Deprecated. Releases the connection to the datarow. |
protected DataRow |
getDataRow()
Deprecated. Returns the data row assigned to this DataSource. |
java.lang.String |
getFunction()
Deprecated. Returns the name of the function bound to this datasource. |
java.lang.Object |
getValue()
Deprecated. Returns the value of the function. |
void |
setFunction(java.lang.String field)
Deprecated. Sets the function. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FunctionDataSource()
public FunctionDataSource(java.lang.String function)
function
- The function.Method Detail |
public void setFunction(java.lang.String field)
field
- the name of the function as defined in the function collection.public java.lang.String getFunction()
public java.lang.Object getValue()
getValue
in interface DataSource
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface DataSource
java.lang.CloneNotSupportedException
- if the cloning failed.public void connectDataRow(DataRow row) throws java.lang.IllegalStateException
connectDataRow
in interface DataRowConnectable
row
- the data row.
java.lang.IllegalStateException
- if there is already a data row connected.public void disconnectDataRow(DataRow row) throws java.lang.IllegalStateException
disconnectDataRow
in interface DataRowConnectable
row
- the data row.
java.lang.IllegalStateException
- if there is no data row connected.protected DataRow getDataRow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |