net.sf.jasperreports.engine.data
public class JRSortableDataSource extends java.lang.Object implements JRRewindableDataSource
| Modifier and Type | Field and Description |
|---|---|
protected java.text.Collator |
collator |
| Constructor and Description |
|---|
JRSortableDataSource(JRDataSource ds,
JRField[] fields,
JRSortField[] sortFields,
java.util.Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFieldValue(JRField jrField)
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.
|
static void |
verifySortFields(JRField[] fields,
JRSortField[] sortFields) |
public JRSortableDataSource(JRDataSource ds, JRField[] fields, JRSortField[] sortFields, java.util.Locale locale) throws JRException
JRExceptionpublic boolean next()
JRDataSourcenext in interface JRDataSourcepublic java.lang.Object getFieldValue(JRField jrField)
JRDataSourcegetFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourcepublic static void verifySortFields(JRField[] fields, JRSortField[] sortFields)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com