|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The datarow is used to access the current row in the TableModel
,
Expression
s and Function
s using a generic interface.
The DataRow is able to detect deadlocks and to check function depencies.
The DataRows depends on a unmodifiable row structure, so it is forbidden to add new functions and expressions to the report or to modify the tablemodel after the report processing has started.
ReportProperties can only be queried if they are marked. Marked properties get
enumerated when the report processing starts. Marking properties after that point
has no effect. Removing the property will not remove the column from this datarow,
this DataRow's column will return null
when queried in that case.
Expression
,
Function
,
TableModel
Method Summary | |
int |
findColumn(java.lang.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. |
java.lang.Object |
get(int col)
Returns the value of the function, expression or column in the tablemodel using the column number. |
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. |
Method Detail |
public java.lang.Object get(int col)
getValue()
method is called and for
columns from the tablemodel the tablemodel method getValueAt(row, column)
gets called.
col
- the item index.
public java.lang.Object get(java.lang.String col) throws java.lang.IllegalStateException
getValue()
method is called and for
columns from the tablemodel the tablemodel method getValueAt(row, column)
gets called.
col
- the item index.
java.lang.IllegalStateException
- if the datarow detected a deadlock.public java.lang.String getColumnName(int col)
getColumnName
method is called. For functions, expressions
and report properties the assigned name is returned.
col
- the item index.
public int findColumn(java.lang.String name)
name
- the item name.
public int getColumnCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |