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 2... |
Line 2... |
2 |
|
2 |
|
Line 3... |
Line 3... |
3 |
import java.util.List;
|
3 |
import java.util.List;
|
- |
|
4 |
|
4 |
|
5 |
import org.tela_botanica.del.client.cache.CacheClient;
|
5 |
import org.tela_botanica.del.client.cache.CacheClient;
|
6 |
import org.tela_botanica.del.client.modeles.MoyenneVote;
|
6 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
7 |
import org.tela_botanica.del.client.modeles.PropositionDetermination;
|
7 |
import org.tela_botanica.del.client.navigation.evenement.BusEvenementiel;
|
8 |
import org.tela_botanica.del.client.navigation.evenement.BusEvenementiel;
|
- |
|
9 |
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.EvenementAjoutDetermination;
|
- |
|
10 |
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.GestionnaireEvenementAjoutDetermination;
|
Line 8... |
Line 11... |
8 |
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.EvenementAjoutDetermination;
|
11 |
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
|
Line 9... |
Line 12... |
9 |
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.GestionnaireEvenementAjoutDetermination;
|
12 |
import org.tela_botanica.del.client.utils.MockDatasource;
|
Line 24... |
Line 27... |
24 |
gererEvenements();
|
27 |
gererEvenements();
|
25 |
}
|
28 |
}
|
Line 26... |
Line 29... |
26 |
|
29 |
|
27 |
private void chargerDeterminations() {
|
30 |
private void chargerDeterminations() {
|
- |
|
31 |
determinations = CacheClient.getInstance().getCurrentObservation().getImageCelValidationDatas();
|
- |
|
32 |
forumVue.initialiserEntetesTableau();
|
28 |
determinations = CacheClient.getInstance().getCurrentObservation().getImageCelValidationDatas();
|
33 |
|
- |
|
34 |
for (PropositionDetermination determination : determinations) {
|
- |
|
35 |
LigneForumPresenteur ligne = new LigneForumPresenteur(determination);
|
- |
|
36 |
ligne.go(forumVue.getTable());
|
29 |
forumVue.chargerDeterminations(determinations);
|
37 |
}
|
Line 30... |
Line 38... |
30 |
}
|
38 |
}
|
31 |
|
39 |
|
Line 32... |
Line 40... |
32 |
private void gererEvenements() {
|
40 |
private void gererEvenements() {
|
33 |
BusEvenementiel.getInstance().addHandler(EvenementAjoutDetermination.TYPE, new GestionnaireEvenementAjoutDetermination() {
|
41 |
BusEvenementiel.getInstance().addHandler(EvenementAjoutDetermination.TYPE, new GestionnaireEvenementAjoutDetermination() {
|
34 |
|
42 |
|
- |
|
43 |
@Override
|
35 |
@Override
|
44 |
public void onAjoutDetermination(EvenementAjoutDetermination event) {
|
36 |
public void onAjoutDetermination(EvenementAjoutDetermination event) {
|
45 |
LigneForumPresenteur ligne = new LigneForumPresenteur(event.getPropositionDetermination());
|
37 |
forumVue.chargerDetermination(event.getPropositionDetermination());
|
46 |
ligne.go(forumVue.getTable());
|
38 |
}
|
47 |
}
|