public class JREmptyDataSource extends Object implements JRRewindableDataSource
The simplest implementation of the JRDataSource
interface, this class can be used in reports that do not display data from the supplied data
source, but rather from parameters, and when only the number of virtual rows in the data
source is important.
JRDataSource| Constructor and Description |
|---|
JREmptyDataSource() |
JREmptyDataSource(int count) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getFieldValue(JRField field)
Gets the field value for the current position.
|
void |
moveFirst()
Moves back to the first element in the data source.
|
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
public JREmptyDataSource()
public JREmptyDataSource(int count)
public boolean next()
JRDataSourcenext in interface JRDataSourcepublic Object getFieldValue(JRField field)
JRDataSourcegetFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourceCopyright © 2017. All rights reserved.