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

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 37 of file zul/dossier/StatusChart.java.

Member Function Documentation

◆ setDossierReport()

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

Definition at line 39 of file zul/dossier/StatusChart.java.

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

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