org.jfree.report
Class ParameterDataRow
java.lang.Object
|
+--org.jfree.report.ParameterDataRow
- public class ParameterDataRow
- extends java.lang.Object
- implements DataRow
Creation-Date: 27.06.2006, 11:55:11
- Author:
- Thomas Morgner
|
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 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. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ParameterDataRow
public ParameterDataRow(ReportProperties base)
get
public java.lang.Object get(int col)
- 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.
- Specified by:
- get in interface DataRow
- Parameters:
col - the item index.- Returns:
- the value.
- Throws:
- java.lang.IllegalStateException - if the datarow detected a deadlock.
get
public java.lang.Object get(java.lang.String col)
throws java.lang.IllegalStateException
- 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.
- Specified by:
- get in interface DataRow
- Parameters:
col - the item index.- Returns:
- the value.
- Throws:
- java.lang.IllegalStateException - if the datarow detected a deadlock.
getColumnName
public java.lang.String getColumnName(int col)
- 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.
- Specified by:
- getColumnName in interface DataRow
- Parameters:
col - the item index.- Returns:
- the name.
findColumn
public 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.
- Specified by:
- findColumn in interface DataRow
- Parameters:
name - the item name.- Returns:
- the item index.
getColumnCount
public int getColumnCount()
- Returns the number of columns, expressions and functions and marked
ReportProperties in the report.
- Specified by:
- getColumnCount in interface DataRow
- Returns:
- the item count.