|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.views.jasperreports.OgnlValueStackDataSource
Ported to WebWork2.
Constructor Summary | |
OgnlValueStackDataSource(com.opensymphony.xwork.util.OgnlValueStack valueStack,
String dataSource)
Create a value stack data source on the given iterable property |
Method Summary | |
Object |
getFieldValue(net.sf.jasperreports.engine.JRField field)
Get the value of a given field |
boolean |
next()
Is there any more data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OgnlValueStackDataSource(com.opensymphony.xwork.util.OgnlValueStack valueStack, String dataSource)
valueStack
- The value stack to base the data source ondataSource
- The property to iterate over for the reportMethod Detail |
public Object getFieldValue(net.sf.jasperreports.engine.JRField field) throws net.sf.jasperreports.engine.JRException
getFieldValue
in interface net.sf.jasperreports.engine.JRDataSource
field
- The field to get the value for. The expression language to get the value
of the field is either taken from the description property or from the name of the field
if the description is null
.
Object
containing the field value or a new
OgnlValueStackDataSource
object if the field value evaluates to
an object that can be iterated over.
net.sf.jasperreports.engine.JRException
- if there is a problem obtaining the valuepublic boolean next() throws net.sf.jasperreports.engine.JRException
next
in interface net.sf.jasperreports.engine.JRDataSource
true
if there are more elements to iterate over and
false
otherwise
net.sf.jasperreports.engine.JRException
- if there is a problem determining whether there
is more data
|
WebWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |