|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.data.GlobalView
public final class GlobalView
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.
Method Summary | |
---|---|
GlobalView |
advance()
|
static GlobalView |
createView()
|
GlobalView |
derive()
|
java.lang.Object |
get(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index. |
java.lang.Object |
get(java.lang.String col)
Returns the value of the function, expression or column using its specific name. |
int |
getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report. |
java.lang.String |
getColumnName(int col)
Returns the name of the column, expression or function. |
DataFlags |
getFlags(int col)
Queries lowlevel meta-data for the current value of the specified column. |
DataFlags |
getFlags(java.lang.String col)
Queries lowlevel meta-data for the current value of the specified column. |
void |
putField(java.lang.String name,
java.lang.Object value,
boolean update)
This adds the expression to the data-row and queries the expression for the first time. |
void |
removeColumn(java.lang.String name)
Note: Dont remove the column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GlobalView createView()
public void putField(java.lang.String name, java.lang.Object value, boolean update) throws DataSourceException
name
- the name of the field (cannot be null)value
- the value of that field (may be null)
DataSourceException
public java.lang.Object get(int col) throws DataSourceException
getValue()
method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column)
gets
called.
get
in interface DataRow
get
in interface DataSet
col
- the item index.
java.lang.IllegalStateException
- if the datarow detected a deadlock.
DataSourceException
- if an error occured.public java.lang.Object get(java.lang.String col) throws DataSourceException
getValue()
method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column)
gets
called.
get
in interface DataRow
col
- the item index.
java.lang.IllegalStateException
- if the datarow detected a deadlock.
DataSourceException
- if an error occured.public java.lang.String getColumnName(int col)
getColumnName
method is
called. For functions, expressions and report properties the assigned name
is returned.
getColumnName
in interface DataRow
getColumnName
in interface DataSet
col
- the item index.
public int getColumnCount()
getColumnCount
in interface DataRow
getColumnCount
in interface DataSet
public DataFlags getFlags(java.lang.String col)
DataRow
getFlags
in interface DataRow
col
- the colum for which to query the meta-data flags
public DataFlags getFlags(int col)
DataRow
getFlags
in interface DataRow
col
- the colum for which to query the meta-data flags
public GlobalView derive()
public GlobalView advance()
public void removeColumn(java.lang.String name)
name
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |