18 package org.turro.zkoss.print;
20 import java.util.Collection;
21 import net.sf.jasperreports.engine.JRException;
22 import net.sf.jasperreports.engine.JRField;
23 import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
24 import org.zkoss.lang.Objects;
32 private Object realBean, previousBean;
35 super(beanCollection, isUseFieldDescription);
39 super(beanCollection);
43 protected Object
getFieldValue(Object bean, JRField field)
throws JRException {
44 if(!Objects.equals(bean, previousBean)) {
48 return super.getFieldValue(realBean, field);
OnDemandBeanCollection(Collection beanCollection, boolean isUseFieldDescription)
OnDemandBeanCollection(Collection beanCollection)
abstract Object getRealBean(Object bean)
Object getFieldValue(Object bean, JRField field)