Subversion Repositories eFlore/Applications.coel

Rev

Rev 268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 268 Rev 277
Line 5... Line 5...
5
import com.google.gwt.json.client.JSONArray;
5
import com.google.gwt.json.client.JSONArray;
6
import com.google.gwt.json.client.JSONObject;
6
import com.google.gwt.json.client.JSONObject;
Line 7... Line 7...
7
 
7
 
8
/**
8
/**
9
 * Table de hachage composée d'informations sur les Valeurs des listes, renvoyé par un objet de type DAO
9
 * Table de hachage composée d'informations sur les Valeurs des listes, renvoyé par un objet de type DAO
10
 * La clé est le nom de l'entite + le nom de l'entite parente
10
 * La clé est l'id de l'entite.
11
 * 
11
 * 
12
 * @author david delon
12
 * @author Grégoire DUCHÉ
13
 * 
13
 * 
14
 */
14
 */
Line 15... Line -...
15
public class ProjetListe extends LinkedHashMap<String, Projet> {
-
 
16
	
15
public class ProjetListe extends LinkedHashMap<String, Projet> {
Line 17... Line 16...
17
	
16
	
18
	private int id = 0;
17
	private int id = 0;
19
	
18
	
Line 47... Line 46...
47
			if (projetCourant != null)	{
46
			if (projetCourant != null)	{
48
				Projet projet = new Projet(projetCourant);
47
				Projet projet = new Projet(projetCourant);
49
				this.put(projet.getId(), projet);				
48
				this.put(projet.getId(), projet);				
50
			}
49
			}
51
		}
50
		}
52
		
-
 
53
	}
51
	}
Line 54... Line -...
54
	
-
 
55
	
-
 
56
 
-
 
57
	/*public PersonneListe(JSONString listeId, JSONArray listePersonnes) {
-
 
58
		super(listePersonnes.size());
-
 
59
		this.setId(Integer.parseInt(listeId.stringValue()));
-
 
60
		//this.constuireObjet(listePersonnes);
-
 
61
	}*/
-
 
62
 
-
 
63
	/*private void constuireObjet(JSONArray liste) 
-
 
64
	{
-
 
65
		final int taillemax = liste.size();
-
 
66
		
-
 
67
		for (int i = 0; i < taillemax; i++) {
-
 
68
			JSONObject listeValeur = liste.get(i).isObject() ;
-
 
69
			
-
 
70
			if (listeValeur != null)	{
-
 
71
				Valeur valeur = new Valeur(listeValeur);
-
 
72
				this.put(valeur.getId(), valeur);
-
 
73
			}
-
 
74
		}
-
 
75
	}*/
-
 
76
	
52
	
77
	/**
53
	/**
78
	 * @param id l'identifiant à définir
54
	 * @param id l'identifiant à définir
79
	 */
55
	 */
80
	public void setId(int id) {
56
	public void setId(int id) {