Subversion Repositories eFlore/Applications.coel

Rev

Blame | Last modification | View Log | RSS feed

package org.tela_botanica.client.modeles.collection;

import org.tela_botanica.client.modeles.aDonneeListe;

import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.Window;

public class CollectionAStructureListe extends aDonneeListe<CollectionAStructure> {

        private static final long serialVersionUID = -660181428725095350L;
        
        public CollectionAStructureListe() {
                super();
        }
        
        public CollectionAStructureListe(int taille) {
                super(taille);
        }
        
        public CollectionAStructureListe(JSONArray collectionAStructureListe) {
                super(collectionAStructureListe.size()) ;
                final int taillemax = collectionAStructureListe.size();
                
                for (int i = 0; i < taillemax; i++) {
                        JSONObject collectionAStructureCourante = collectionAStructureListe.get(i).isObject() ;
                        if (collectionAStructureCourante != null)       {
                                CollectionAStructure collectionAStructure = new CollectionAStructure(collectionAStructureCourante);
                                this.put(collectionAStructure.getIdCollection(), collectionAStructure);
                        }
                }
        }
}