Subversion Repositories eFlore/Applications.del

Rev

Rev 876 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 876 Rev 893
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
1
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
Line -... Line 2...
-
 
2
 
2
 
3
import java.util.List;
3
import org.tela_botanica.del.client.cache.CacheClient;
4
import org.tela_botanica.del.client.cache.CacheClient;
4
import org.tela_botanica.del.client.modeles.InterventionForum;
5
import org.tela_botanica.del.client.modeles.InterventionForum;
5
import org.tela_botanica.del.client.navigation.evenement.BusEvenementiel;
6
import org.tela_botanica.del.client.navigation.evenement.BusEvenementiel;
6
import org.tela_botanica.del.client.navigation.evenement.ajoutcommentaire.EvenementAjoutCommentaire;
7
import org.tela_botanica.del.client.navigation.evenement.ajoutcommentaire.EvenementAjoutCommentaire;
Line 34... Line 35...
34
 
35
 
35
		gererEvenements();
36
		gererEvenements();
Line 36... Line 37...
36
	}
37
	}
-
 
38
 
-
 
39
	private void chargerDeterminations() {
-
 
40
		//for (InterventionForum interventionForum : CacheClient.getInstance().getObservationCourante().getInterventionsForum()) {
-
 
41
		List<InterventionForum> interventions = CacheClient.getInstance().getObservationCourante().getInterventionsForum();
-
 
42
		while (interventions.size() > 0) {
-
 
43
			interventions = afficherParent(interventions, interventions.get(0));
37
 
44
		}
-
 
45
	}
-
 
46
	
-
 
47
	private List<InterventionForum> afficherParent(List<InterventionForum> interventions, InterventionForum interventionForum) {
-
 
48
		InterventionForum interventionParent = interventionForum.getParent();
38
	private void chargerDeterminations() {
49
		if (interventionParent != null) {
-
 
50
			interventions = afficherParent(interventions, interventionParent);
-
 
51
			new ForumInterventionPresenteur(new ForumInterventionVue(), interventionForum).go(vue.getPanneauInterventions());
39
 
52
			interventions.remove(interventionForum);
-
 
53
		} else {
40
		for (InterventionForum interventionForum : CacheClient.getInstance().getObservationCourante().getInterventionsForum()) {
54
			new ForumInterventionPresenteur(new ForumInterventionVue(), interventionForum).go(vue.getPanneauInterventions());
-
 
55
			interventions.remove(interventionForum);
41
			new ForumInterventionPresenteur(new ForumInterventionVue(), interventionForum).go(vue.getPanneauInterventions());
56
		}
Line 42... Line 57...
42
		}
57
		return interventions;
43
	}
58
	}