19 package org.turro.jpa.iterator;
21 import java.lang.reflect.ParameterizedType;
22 import java.util.List;
23 import org.turro.string.ObjectString;
24 import org.turro.string.Strings;
25 import org.turro.collections.Item;
26 import org.turro.elephant.calendar.ElephantCalendar;
27 import org.turro.elephant.context.IConstructor;
28 import org.turro.jpa.Dao;
29 import org.turro.marker.ElephantMarker;
30 import org.turro.visual.EmptyVisualElements;
31 import org.turro.visual.VisualElements;
44 private String treeTemplate, fullTemplate;
46 private final Class<ID> idClass;
52 this.idClass = (Class<ID>) ((ParameterizedType) getClass()
53 .getGenericSuperclass()).getActualTypeArguments()[1];
57 return Strings.isBlank(treeTemplate) ?
"tree" : treeTemplate;
61 this.treeTemplate = treeTemplate;
65 return Strings.isBlank(fullTemplate) ?
"full" : fullTemplate;
69 this.fullTemplate = fullTemplate;
100 if(_visuals ==
null) {
106 private VisualElements _visuals;
DaoHtmlTree(Dao dao, ElephantMarker marker)
abstract String parseItem(ElephantMarker marker, E item)
void setTreeTemplate(String treeTemplate)
VisualElements loadVisuals()
abstract String parseTree(ElephantMarker marker, List< Item< E, ID >> items)
abstract void renderItem(ElephantMarker marker, E item)
abstract void renderTree(ElephantMarker marker, List< Item< E, ID >> items)
VisualElements getVisuals()
void setFullTemplate(String fullTemplate)
IConstructor getConstructor()
Object put(Object key, Object value)
String getParameter(String param)