public class SortedDataSource extends Object implements JRRewindableDataSource, IndexedDataSource
| Modifier and Type | Class and Description |
|---|---|
static class |
SortedDataSource.SortRecord |
| Constructor and Description |
|---|
SortedDataSource(List<SortedDataSource.SortRecord> records,
Integer[] recordIndexes,
String[] columnNames) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getFieldValue(JRField jrField)
Gets the field value for the current position.
|
int |
getRecordIndex()
Returns the index of the current record in the data source.
|
List<SortedDataSource.SortRecord> |
getRecords() |
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.
|
void |
setRecordFilteredIndex(int index) |
public SortedDataSource(List<SortedDataSource.SortRecord> records, Integer[] recordIndexes, String[] columnNames)
public boolean next()
JRDataSourcenext in interface JRDataSourcepublic void setRecordFilteredIndex(int index)
public Object getFieldValue(JRField jrField)
JRDataSourcegetFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourcepublic int getRecordIndex()
IndexedDataSourcegetRecordIndex in interface IndexedDataSourcepublic List<SortedDataSource.SortRecord> getRecords()
Copyright © 2014. All rights reserved.