18 package org.turro.dossier.zul.dossier;
21 import org.turro.dossier.dw.DossierDWReport;
22 import org.turro.dossier.entity.IssueType;
23 import org.turro.elephant.zkoss.EntityGrid;
24 import org.turro.i18n.I_;
25 import org.zkoss.zk.ui.event.Event;
26 import org.zkoss.zk.ui.event.EventListener;
27 import org.zkoss.zk.ui.event.Events;
28 import org.zkoss.zk.ui.event.MouseEvent;
29 import org.zkoss.zul.Area;
30 import org.zkoss.zul.Chart;
31 import org.zkoss.zul.SimplePieModel;
42 SimplePieModel spm =
new SimplePieModel();
44 spm.setValue(
I_.
byKey(is.toString()),
48 addEventListener(Events.ON_CLICK,
new EventListener() {
50 public void onEvent(Event event)
throws Exception {
51 Object obj = ((MouseEvent) event).getAreaComponent();
52 if(obj instanceof Area) {
53 Area area = (Area) obj;
54 if(
"DATA".equals(area.getAttribute(
"entity"))) {
Collection< String > getIssuesPathByType(String type)
Map< IssueType, Double > getIssuesByType()
void setDossierReport(final DossierDWReport dossierReport)
static void showEntities(Collection< String > entitiesPath)
static String byKey(String key)