T - public abstract class ADataSource<T> extends Object implements net.sf.jasperreports.engine.JRDataSource
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentIndex |
protected T |
currentItem |
protected static DateFormat |
DF |
protected static DecimalFormat |
DOUBLE_FORMAT |
protected int |
end |
protected static DecimalFormat |
INTEGER_FORMAT |
protected List<T> |
items |
protected static String |
NO |
protected static String |
YES |
| Constructor and Description |
|---|
ADataSource()
Creates a new ADataSource object.
|
ADataSource(List<T> items)
Creates a new NutzungenDataSource object.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatBoolean(Boolean bool)
DOCUMENT ME!
|
protected String |
formatDate(Date date)
DOCUMENT ME!
|
protected String |
formatNumber(Double number)
DOCUMENT ME!
|
protected String |
formatNumber(Integer number)
DOCUMENT ME!
|
Object |
getFieldValue(net.sf.jasperreports.engine.JRField jrf) |
protected abstract Object |
getFieldValue(String fieldName)
DOCUMENT ME!
|
boolean |
hasData()
DOCUMENT ME!
|
boolean |
next() |
protected abstract List<T> |
retrieveData()
DOCUMENT ME!
|
protected static final String YES
protected static final String NO
protected static final DecimalFormat DOUBLE_FORMAT
protected static final DecimalFormat INTEGER_FORMAT
protected static final DateFormat DF
protected T currentItem
protected int end
protected int currentIndex
public boolean hasData()
public boolean next()
throws net.sf.jasperreports.engine.JRException
next in interface net.sf.jasperreports.engine.JRDataSourcenet.sf.jasperreports.engine.JRExceptionpublic Object getFieldValue(net.sf.jasperreports.engine.JRField jrf) throws net.sf.jasperreports.engine.JRException
getFieldValue in interface net.sf.jasperreports.engine.JRDataSourcenet.sf.jasperreports.engine.JRExceptionprotected String formatDate(Date date)
date - DOCUMENT ME!protected String formatNumber(Integer number)
number - DOCUMENT ME!protected String formatNumber(Double number)
number - DOCUMENT ME!protected String formatBoolean(Boolean bool)
bool - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.