| java.lang.Object org.jfree.report.states.DataRowConnector
DataRowConnector | public class DataRowConnector implements DataRow(Code) | | 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.
author: Thomas Morgner |
Method Summary | |
public int | findColumn(String name) Looks up the position of the column with the name name . | public Object | get(int col) Return the value of the function, expression or column in the tablemodel using the
column number.
Parameters: col - the column, function or expression index. | public Object | get(String col) Returns the value of the column, function or expression using its name.
Parameters: col - the column, function or expression index. | public int | getColumnCount() Returns the count of columns in this datarow. | public String | getColumnName(int col) Returns the name of the column, function or expression.
Parameters: col - the column, function or expression index. | public DataRow | getDataRowBackend() Returns the assigned data row backend. | public static DataSource | getLastDatasource(DataTarget e) Queries the last datasource in the chain of targets and filters.
The last datasource is used to feed data into the data processing chain. | public boolean | isChanged(String name) | public boolean | isChanged(int index) | public void | setDataRowBackend(DataRow dataRow) Sets the data row backend for this DataRowConnector. | public String | toString() Returns a string describing the object. |
DataRowConnector | public DataRowConnector()(Code) | | Default constructor.
|
findColumn | public int findColumn(String name)(Code) | | Looks up the position of the column with the name name . returns the
position of the column or -1 if no columns could be retrieved.
Parameters: name - the column, function or expression name. the column position of the column, expression or function with the given nameor -1 if the given name does not exist in this DataRow. throws: java.lang.IllegalStateException - if there is no backend connected. |
get | public Object get(int col)(Code) | | Return the value of the function, expression or column in the tablemodel using the
column number.
Parameters: col - the column, function or expression index. the column, function or expression value. throws: java.lang.IllegalStateException - if there is no backend connected. |
get | public Object get(String col)(Code) | | Returns the value of the column, function or expression using its name.
Parameters: col - the column, function or expression index. The column, function or expression value. throws: java.lang.IllegalStateException - if there is no backend connected |
getColumnCount | public int getColumnCount()(Code) | | Returns the count of columns in this datarow. The columncount is the sum of all
DataSource columns, all functions and all expressions.
the number of accessible columns in this datarow. throws: java.lang.IllegalStateException - if there is no backend connected. |
getColumnName | public String getColumnName(int col)(Code) | | Returns the name of the column, function or expression.
Parameters: col - the column, function or expression index. the column, function or expression name. throws: java.lang.IllegalStateException - if there is no backend connected. |
getDataRowBackend | public DataRow getDataRowBackend()(Code) | | Returns the assigned data row backend.
the currently assigned DataRowBackend for this DataRowConnector. |
getLastDatasource | public static DataSource getLastDatasource(DataTarget e)(Code) | | Queries the last datasource in the chain of targets and filters.
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.
Parameters: e - the data target. The last DataSource in the chain. |
isChanged | public boolean isChanged(int index)(Code) | | |
setDataRowBackend | public void setDataRowBackend(DataRow dataRow)(Code) | | Sets the data row backend for this DataRowConnector. The backend actually contains
the data which will be queried, while this DataRowConnector is simply a proxy
forwarding all requests to the backend.
Parameters: dataRow - the data row backend |
toString | public String toString()(Code) | | Returns a string describing the object.
The string. |
|
|