01: package org.conform;
02:
03: import java.util.Map;
04:
05: public class DefaultTableData extends AbstractTableData {
06: DefaultBeanData data;
07:
08: public DefaultTableData(BeanMeta beanMeta) {
09: super (beanMeta);
10: data = new DefaultBeanData(beanMeta);
11: for (Map.Entry<PropertyMeta, PropertyData> entry : data.propertyDatas
12: .entrySet()) {
13: ((DefaultPropertyData) entry.getValue()).invalid = false;
14: }
15: }
16:
17: public BeanData getRowData(int index) {
18: data.bean = getRows().get(index);
19: return data;
20: }
21: }
|