| java.lang.Object org.jfree.report.data.GlobalView
GlobalView | final public class GlobalView implements DataRow(Code) | | The global view holds all *named* data columns. Expressions which have no
name will not appear here. There is a slot for each name - if expressions
share the same name, the last name wins.
This acts as some kind of global variables heap - which allows named
functions to export their values to a global space.
This datarow is optimized for named access - the sequential access is only
generated when absolutly needed.
author: Thomas Morgner |
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()(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. |
putField | public synchronized void putField(String name, Object value, boolean update) throws DataSourceException(Code) | | This adds the expression to the data-row and queries the expression for the
first time.
Parameters: name - the name of the field (cannot be null) Parameters: value - the value of that field (may be null) throws: DataSourceException - |
removeColumn | public synchronized void removeColumn(String name)(Code) | | Note: Dont remove the column. It will stay around here as long as the
process lives.
Parameters: name - |
|
|