|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.data.StaticDataRow
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.
Constructor Summary | |
protected |
StaticDataRow()
|
|
StaticDataRow(DataRow dataRow)
|
protected |
StaticDataRow(StaticDataRow dataRow)
|
|
StaticDataRow(java.lang.String[] names,
java.lang.Object[] values)
|
Method Summary | |
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. |
protected void |
setData(java.lang.String[] names,
java.lang.Object[] values)
|
protected void |
updateData(java.lang.Object[] values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected StaticDataRow()
protected StaticDataRow(StaticDataRow dataRow)
public StaticDataRow(DataRow dataRow) throws DataSourceException
public StaticDataRow(java.lang.String[] names, java.lang.Object[] values)
Method Detail |
protected void setData(java.lang.String[] names, java.lang.Object[] values)
protected void updateData(java.lang.Object[] values)
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
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) throws DataSourceException
getColumnName
method is
called. For functions, expressions and report properties the assigned name
is returned.
getColumnName
in interface DataRow
col
- the item index.
DataSourceException
- if an error occured.public int getColumnCount() throws DataSourceException
getColumnCount
in interface DataRow
DataSourceException
- if an error occured.public DataFlags getFlags(java.lang.String col) throws DataSourceException
DataRow
getFlags
in interface DataRow
col
- the colum for which to query the meta-data flags
DataSourceException
- if an error occured.public DataFlags getFlags(int col) throws DataSourceException
DataRow
getFlags
in interface DataRow
col
- the colum for which to query the meta-data flags
DataSourceException
- if an error occured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |