public class ValueMatrixDataSource
extends java.lang.Object
implements net.sf.jasperreports.engine.JRRewindableDataSource
Constructor and Description |
---|
ValueMatrixDataSource(ValueMatrix vm,
java.lang.String columnName)
The constructor of the datasource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFieldValue(net.sf.jasperreports.engine.JRField arg0)
The get field method, the following fields are supported.
|
void |
moveFirst()
Move the index to the first point.
|
boolean |
next()
Set the index to th enext point in the valuematrix.
|
public ValueMatrixDataSource(ValueMatrix vm, java.lang.String columnName)
vm
- the valuematrix object.columnName
- the name of the column.public java.lang.Object getFieldValue(net.sf.jasperreports.engine.JRField arg0) throws net.sf.jasperreports.engine.JRException
getFieldValue
in interface net.sf.jasperreports.engine.JRDataSource
arg0,
- the field.net.sf.jasperreports.engine.JRException
JRDataSource.getFieldValue(net.sf.jasperreports.engine.JRField)
public boolean next() throws net.sf.jasperreports.engine.JRException
next
in interface net.sf.jasperreports.engine.JRDataSource
net.sf.jasperreports.engine.JRException
JRDataSource.next()
public void moveFirst() throws net.sf.jasperreports.engine.JRException
moveFirst
in interface net.sf.jasperreports.engine.JRRewindableDataSource
net.sf.jasperreports.engine.JRException
JRRewindableDataSource.moveFirst()