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()
JRDataSource
next
in interface JRDataSource
public Object getFieldValue(JRField field)
JRDataSource
getFieldValue
in interface JRDataSource
public void moveFirst()
JRRewindableDataSource
moveFirst
in interface JRRewindableDataSource
Copyright © 2017. All rights reserved.