public void modify(Object element, String property, Object value)
{
if (value != null)
{
int idx = getPropIndex(property);
ValuedInstance vi = (ValuedInstance) ((TableItem) element).getData();
Attribut attr = _fd.getAttributList().get(_mapIdx[idx]);
switch (attr.getType())
{
case T_Date:
value = new java.sql.Date(((Date) value).getTime());
break;
case T_Time:
value = new Time(((Date) value).getTime());
break;
case T_TimeStamp:
value = new Timestamp(((Date) value).getTime());
break;
case T_RefList:
int index = (Integer) value;
AttrEnumItemChecker aei = (AttrEnumItemChecker) attr.getChecker();
value = aei.getLstEnumItem().get(index);
break;
}
vi.setValue(_mapIdx[idx], value);
update(vi, new String[]
{
property
});