| java.lang.Object org.jfree.report.data.StaticDataRow
All known Subclasses: org.jfree.report.data.ParameterDataRow, org.jfree.report.data.ImportedVariablesDataRow,
StaticDataRow | public class StaticDataRow implements DataRow(Code) | | This is a static datarow holding a value for each name in the datarow. This
datarow does not hold dataflags and thus does not track the changes done to
the data inside.
The StaticDataRow is a derived view and is used to provide a safe collection
of the values of the previous datarow.
author: Thomas Morgner |
StaticDataRow | protected StaticDataRow()(Code) | | |
get | public Object get(int col) throws DataSourceException(Code) | | Returns the value of the expression or column in the tablemodel using the
given column number as index. For functions and expressions, the
getValue() method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column) gets
called.
Parameters: col - the item index. the value. throws: IllegalStateException - if the datarow detected a deadlock. |
get | public Object get(String col) throws DataSourceException(Code) | | Returns the value of the function, expression or column using its specific
name. The given name is translated into a valid column number and the the
column is queried. For functions and expressions, the
getValue() method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column) gets
called.
Parameters: col - the item index. the value. throws: IllegalStateException - if the datarow detected a deadlock. |
getColumnCount | public int getColumnCount() throws DataSourceException(Code) | | Returns the number of columns, expressions and functions and marked
ReportProperties in the report.
the item count. |
getColumnName | public String getColumnName(int col) throws DataSourceException(Code) | | Returns the name of the column, expression or function. For columns from
the tablemodel, the tablemodels getColumnName method is
called. For functions, expressions and report properties the assigned name
is returned.
Parameters: col - the item index. the name. |
|
|