BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.dossier.ResolutionChart Class Reference
Inheritance diagram for org.turro.dossier.zul.dossier.ResolutionChart:
Collaboration diagram for org.turro.dossier.zul.dossier.ResolutionChart:

Public Member Functions

void setDossierReport (final DossierDWReport dossierReport)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 38 of file zul/dossier/ResolutionChart.java.

Member Function Documentation

◆ setDossierReport()

void org.turro.dossier.zul.dossier.ResolutionChart.setDossierReport ( final DossierDWReport  dossierReport)

Definition at line 40 of file zul/dossier/ResolutionChart.java.

40  {
41  Map<IssueResolution, Double> values = dossierReport.getIssuesByResolution();
42  setType(PIE);
43  SimplePieModel spm = new SimplePieModel();
44  for(IssueResolution is : values.keySet()) {
45  spm.setValue(I_.byKey(is.toString()),
46  values.get(is));
47  }
48  setModel(spm);
49  addEventListener(Events.ON_CLICK, new EventListener() {
50  @Override
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"))) {
56  EntityGrid.showEntities(dossierReport.getIssuesPathByResolution((String) area.getAttribute("category")));
57  }
58  }
59  }
60  });
61  }

The documentation for this class was generated from the following file: