Subversion Repositories eFlore/Applications.coel

Rev

Rev 1513 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
985 jpm 1
package org.tela_botanica.client.modeles.collection;
2
 
3
import org.tela_botanica.client.modeles.aDonneeListe;
4
 
5
import com.google.gwt.json.client.JSONArray;
6
import com.google.gwt.json.client.JSONObject;
7
 
8
public class CollectionACommentaireListe extends aDonneeListe<CollectionACommentaire> {
9
 
10
	private static final long serialVersionUID = 1L;
11
 
12
	public CollectionACommentaireListe() {
13
		super();
14
	}
15
 
16
	public CollectionACommentaireListe(int taille) {
17
		super(taille);
18
	}
19
 
20
	public CollectionACommentaireListe(JSONArray collectionACommentaires) {
21
		super(collectionACommentaires.size()) ;
22
		final int taillemax = collectionACommentaires.size();
23
 
24
		for (int i = 0; i < taillemax; i++) {
25
			JSONObject collectionACommentaireCourant = collectionACommentaires.get(i).isObject() ;
26
 
27
			if (collectionACommentaireCourant != null)	{
28
				CollectionACommentaire collectionACommentaire = new CollectionACommentaire(collectionACommentaireCourant);
29
				this.put(collectionACommentaire.getId(), collectionACommentaire);
30
			}
31
		}
32
	}
33
 
34
}