|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.states.DataRowConnector
This is the connection-proxy to the various data sources contained in the elements. During report processing the report states get cloned while the elements remain uncloned. The DataRowConnector connects the DataRowBackend (which contains the data) with the stateless elements.
DataRowBackend
Constructor Summary | |
DataRowConnector()
Default constructor. |
Method Summary | |
static void |
connectDataSources(Band band,
DataRowConnector con)
Connects the Band and all Elements within the band to this DataRow. |
static void |
connectDataSources(ReportDefinition report,
DataRowConnector con)
Connects the Report and all contained bands and all Elements within the bands to this DataRow. |
static void |
disconnectDataSources(Band band,
DataRowConnector con)
Removes the reference to this DataRow from the Band and all Elements contained in the Band. |
static void |
disconnectDataSources(ReportDefinition report,
DataRowConnector con)
Removes the reference to this DataRow from the Report and all contained Bands and all Elements contained in the Bands. |
int |
findColumn(java.lang.String name)
Looks up the position of the column with the name name . |
java.lang.Object |
get(int col)
Return the value of the function, expression or column in the tablemodel using the column number. |
java.lang.Object |
get(java.lang.String col)
Returns the value of the column, function or expression using its name. |
int |
getColumnCount()
Returns the count of columns in this datarow. |
java.lang.String |
getColumnName(int col)
Returns the name of the column, function or expression. |
DataRowBackend |
getDataRowBackend()
Returns the assigned data row backend. |
static DataSource |
getLastDatasource(DataTarget e)
Queries the last datasource in the chain of targets and filters. |
void |
setDataRowBackend(DataRowBackend dataRow)
Sets the data row backend for this DataRowConnector. |
java.lang.String |
toString()
Returns a string describing the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataRowConnector()
Method Detail |
public DataRowBackend getDataRowBackend()
public void setDataRowBackend(DataRowBackend dataRow)
dataRow
- the data row backendpublic java.lang.Object get(int col)
get
in interface DataRow
col
- the column, function or expression index.
java.lang.IllegalStateException
- if there is no backend connected.public java.lang.Object get(java.lang.String col)
get
in interface DataRow
col
- the column, function or expression index.
java.lang.IllegalStateException
- if there is no backend connectedpublic java.lang.String getColumnName(int col)
getColumnName
in interface DataRow
col
- the column, function or expression index.
java.lang.IllegalStateException
- if there is no backend connected.public int findColumn(java.lang.String name)
name
.
returns the position of the column or -1 if no columns could be retrieved.
findColumn
in interface DataRow
name
- the column, function or expression name.
java.lang.IllegalStateException
- if there is no backend connected.public int getColumnCount()
getColumnCount
in interface DataRow
java.lang.IllegalStateException
- if there is no backend connected.public static void connectDataSources(ReportDefinition report, DataRowConnector con)
report
- the report which will be connectedcon
- the data row connector.public static void connectDataSources(Band band, DataRowConnector con)
band
- the band which will be connected.con
- the connector.public static void disconnectDataSources(ReportDefinition report, DataRowConnector con)
report
- the report which will be disconnected from this DataRow.con
- the connector.public static void disconnectDataSources(Band band, DataRowConnector con)
band
- the band which will be disconnected from this DataRow.con
- the connector.public static DataSource getLastDatasource(DataTarget e)
The last datasource is used to feed data into the data processing chain. The result of this computation is retrieved by the element using the registered datasource to query the queue.
e
- the data target.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |