|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.data.JRMapCollectionDataSource
public class JRMapCollectionDataSource
| Constructor Summary | |
|---|---|
JRMapCollectionDataSource(java.util.Collection col)
|
|
| Method Summary | |
|---|---|
JRMapCollectionDataSource |
cloneDataSource()
Clones this data source by creating a new instance that reuses the same underlying map collection. |
java.util.Collection |
getData()
Returns the underlying map collection used by this data source. |
java.lang.Object |
getFieldValue(JRField field)
Gets the field value for the current position. |
int |
getRecordCount()
Returns the total number of records/maps that this data source contains. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRMapCollectionDataSource(java.util.Collection col)
| Method Detail |
|---|
public boolean next()
JRDataSource
next in interface JRDataSourcepublic java.lang.Object getFieldValue(JRField field)
JRDataSource
getFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSource
moveFirst in interface JRRewindableDataSourcepublic java.util.Collection getData()
public int getRecordCount()
public JRMapCollectionDataSource cloneDataSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||