View Javadoc
1   /*
2    * To change this license header, choose License Headers in Project Properties.
3    * To change this template file, choose Tools | Templates
4    * and open the template in the editor.
5    */
6   
7   package fr.paris.lutece.plugins.dataviz.business;
8   
9   import fr.paris.lutece.util.ReferenceList;
10  import java.util.List;
11  
12  /**
13   *
14   * @author evrardmax
15   */
16  public class CompositeStatList extends AbstractStat implements IStatList
17  {
18      private List<StatSingle> _listStatSingle;
19      
20      public void setStatList ( List<StatSingle> listStatSingle)
21      {
22          _listStatSingle = listStatSingle;
23      }
24      
25      @Override
26      public ReferenceList getList() 
27      {
28          ReferenceList listSingle = new ReferenceList ( );
29          
30          for ( StatSingle singleResult : _listStatSingle )
31          {
32              listSingle.addItem (singleResult.getName(), singleResult.getResult().toString() );
33          }
34          return listSingle;
35      }
36  }