| java.lang.Object org.jfree.report.states.datarow.StaticDataRow
All known Subclasses: org.jfree.report.ParameterDataRow, org.jfree.report.states.datarow.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 |
Method Summary | |
public int | findColumn(String name) Returns the column position of the column, expression or function with the
given name or -1 if the given name does not exist in this DataRow.
Parameters: name - the item name. | public Object | get(int col) Returns the value of the expression or column in the tablemodel using the
given column number as index. | public Object | get(String col) Returns the value of the function, expression or column using its specific
name. | public int | getColumnCount() Returns the number of columns, expressions and functions and marked
ReportProperties in the report. | public String | getColumnName(int col) Returns the name of the column, expression or function. | public boolean | isChanged(String name) | public boolean | isChanged(int index) | protected void | setData(String[] names, Object[] values) | protected void | updateData(Object[] values) |
StaticDataRow | protected StaticDataRow()(Code) | | |
findColumn | public int findColumn(String name)(Code) | | Returns the column position of the column, expression or function with the
given name or -1 if the given name does not exist in this DataRow.
Parameters: name - the item name. the item index. |
get | public Object get(int col)(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)(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()(Code) | | Returns the number of columns, expressions and functions and marked
ReportProperties in the report.
the item count. |
getColumnName | public String getColumnName(int col)(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. |
isChanged | public boolean isChanged(int index)(Code) | | |
|
|