public class ExportableJRBeanCollectionDataSource<T> extends net.sf.jasperreports.engine.data.JRAbstractBeanDataSource implements ExportableData, HasDataSubReport
Constructor and Description |
---|
ExportableJRBeanCollectionDataSource(List<? extends T> beanCollection,
Class<? extends T> clazz,
String dataName,
String rowName) |
Modifier and Type | Method and Description |
---|---|
ExportableJRBeanCollectionDataSource<T> |
cloneDataSource() |
int |
getColumnCount() |
String |
getColumnName(int col) |
String |
getDataName() |
Object |
getFieldValue(net.sf.jasperreports.engine.JRField field) |
T |
getRow(int row) |
int |
getRowCount() |
String |
getRowName() |
Object |
getValueAt(int row,
int col) |
boolean |
hasData() |
boolean |
isExhausted() |
void |
moveFirst() |
boolean |
next() |
ExportableJRBeanCollectionDataSource<T> |
rewind() |
public Object getValueAt(int row, int col)
getValueAt
in interface ExportableData
public String getColumnName(int col)
getColumnName
in interface ExportableData
public int getColumnCount()
getColumnCount
in interface ExportableData
public int getRowCount()
getRowCount
in interface ExportableData
public String getDataName()
getDataName
in interface ExportableData
public String getRowName()
getRowName
in interface ExportableData
public boolean next()
next
in interface net.sf.jasperreports.engine.JRDataSource
public ExportableJRBeanCollectionDataSource<T> rewind()
public boolean hasData()
hasData
in interface ExportableData
hasData
in interface HasDataSubReport
public void moveFirst()
moveFirst
in interface net.sf.jasperreports.engine.JRRewindableDataSource
public ExportableJRBeanCollectionDataSource<T> cloneDataSource()
public boolean isExhausted()
public Object getFieldValue(net.sf.jasperreports.engine.JRField field) throws net.sf.jasperreports.engine.JRException
getFieldValue
in interface net.sf.jasperreports.engine.JRDataSource
net.sf.jasperreports.engine.JRException
public T getRow(int row)
Copyright © 2019. All rights reserved.