18 package org.turro.dossier.zul.dossier;
21 import org.turro.dossier.dw.DossierDWReport;
22 import org.turro.dossier.entity.IssueResolution;
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;
43 SimplePieModel spm =
new SimplePieModel();
45 spm.setValue(
I_.
byKey(is.toString()),
49 addEventListener(Events.ON_CLICK,
new EventListener() {
51 public void onEvent(Event event)
throws Exception {
52 Object obj = ((MouseEvent) event).getAreaComponent();
53 if(obj instanceof Area) {
54 Area area = (Area) obj;
55 if(
"DATA".equals(area.getAttribute(
"entity"))) {
Map< IssueResolution, Double > getIssuesByResolution()
Collection< String > getIssuesPathByResolution(String resolution)
void setDossierReport(final DossierDWReport dossierReport)
static void showEntities(Collection< String > entitiesPath)
static String byKey(String key)