18 package org.turro.jpa.list;
20 import java.lang.reflect.ParameterizedType;
21 import org.turro.jpa.Dao;
22 import org.zkoss.zul.Listitem;
23 import org.zkoss.zul.ListitemRenderer;
32 public void render(Listitem item, Object data,
int index)
throws Exception {
34 if(data.getClass().isAssignableFrom((Class<ID>) ((ParameterizedType) getClass()
35 .getGenericSuperclass()).getActualTypeArguments()[1])) {
36 obj =
getDao().find((Class<T>) ((ParameterizedType) getClass()
37 .getGenericSuperclass()).getActualTypeArguments()[0], (ID) data);
45 protected abstract void renderItem(Listitem item, T value);
void render(Listitem item, Object data, int index)
abstract void renderItem(Listitem item, T value)