Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 926 Rev 928
Line 91... Line 91...
91
		colonnes.add(new ColumnConfig("id_projet", i18nC.id(), 20));
91
		colonnes.add(new ColumnConfig("id_projet", i18nC.id(), 20));
92
		colonnes.add(new ColumnConfig("nom", i18nC.nom(), 200));
92
		colonnes.add(new ColumnConfig("nom", i18nC.nom(), 200));
93
		colonnes.add(new ColumnConfig("abreviation", i18nC.projetAbreviation(), 200));
93
		colonnes.add(new ColumnConfig("abreviation", i18nC.projetAbreviation(), 200));
94
		colonnes.add(new ColumnConfig("resume", i18nC.projetResume(), 300));
94
		colonnes.add(new ColumnConfig("resume", i18nC.projetResume(), 300));
95
		colonnes.add(new ColumnConfig("url", i18nC.projetUrl(), 200));
95
		colonnes.add(new ColumnConfig("url", i18nC.projetUrl(), 200));
96
		colonnes.add(new ColumnConfig("mots_cles", i18nC.projetMotsCles(), 280));
96
		colonnes.add(new ColumnConfig("mot_cles", i18nC.projetMotsCles(), 280));
Line 97... Line 97...
97
 
97
 
Line 98... Line 98...
98
		modeleDesColonnes = new ColumnModel(colonnes);
98
		modeleDesColonnes = new ColumnModel(colonnes);
99
 
99
 
Line 157... Line 157...
157
	
157
	
158
	public void rafraichir(Object nouvellesDonnees) {
158
	public void rafraichir(Object nouvellesDonnees) {
159
		if (nouvellesDonnees instanceof ProjetListe) {
159
		if (nouvellesDonnees instanceof ProjetListe) {
160
			ProjetListe projets = (ProjetListe) nouvellesDonnees;
160
			ProjetListe projets = (ProjetListe) nouvellesDonnees;
161
			if (projets != null) {
161
			if (projets != null) {
162
				List<Projet> liste = projets.toList();
162
				List<Projet> projetsListe = projets.toList();
-
 
163
				store.removeAll();
-
 
164
				if (mediateur.getProjetId() != null) {
-
 
165
					String projetIdSelectionne = mediateur.getProjetId();
-
 
166
					Iterator<Projet> it = projetsListe.iterator();
-
 
167
					while (it.hasNext()) {
-
 
168
						Projet projetCourant = it.next();
-
 
169
						if (projetCourant.getId().equals(projetIdSelectionne)) {
-
 
170
							store.add(projetCourant);
-
 
171
						}
-
 
172
					}
163
				store.removeAll();
173
				} else {
-
 
174
					store.add(projetsListe);
164
				store.add(liste);
175
				}
165
				mediateur.actualiserPanneauCentral();
176
				mediateur.actualiserPanneauCentral();
166
			}
177
			}
167
		} else if (nouvellesDonnees instanceof Information) {
178
		} else if (nouvellesDonnees instanceof Information) {
168
			Information info = (Information) nouvellesDonnees;
179
			Information info = (Information) nouvellesDonnees;