Subversion Repositories eFlore/Applications.del

Rev

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

Rev 957 Rev 960
Line 27... Line 27...
27
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.EvenementAjoutDetermination;
27
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.EvenementAjoutDetermination;
28
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.GestionnaireEvenementAjoutDetermination;
28
import org.tela_botanica.del.client.navigation.evenement.ajoutdetermination.GestionnaireEvenementAjoutDetermination;
29
import org.tela_botanica.del.client.navigation.evenement.voteDetermination.EvenementVoteDetermination;
29
import org.tela_botanica.del.client.navigation.evenement.voteDetermination.EvenementVoteDetermination;
30
import org.tela_botanica.del.client.navigation.evenement.voteDetermination.GestionnaireEvenementVoteDetermination;
30
import org.tela_botanica.del.client.navigation.evenement.voteDetermination.GestionnaireEvenementVoteDetermination;
31
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
31
import org.tela_botanica.del.client.services.CalculVoteDeterminationService;
-
 
32
import org.tela_botanica.del.client.services.rest.CommentaireServiceConcret;
32
import org.tela_botanica.del.client.services.rest.ObservationService;
33
import org.tela_botanica.del.client.services.rest.ObservationService;
-
 
34
import org.tela_botanica.del.client.services.rest.PropositionDeterminationServiceConcret;
33
import org.tela_botanica.del.client.services.rest.ProtocoleService;
35
import org.tela_botanica.del.client.services.rest.ProtocoleService;
34
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
36
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
35
import org.tela_botanica.del.client.services.rest.async.ProtocolesCallback;
37
import org.tela_botanica.del.client.services.rest.async.ProtocolesCallback;
36
import org.tela_botanica.del.client.vues.plateformedetermination.formulairerechercheeflore.FormulaireRechercheEflorePresenteur;
38
import org.tela_botanica.del.client.vues.plateformedetermination.formulairerechercheeflore.FormulaireRechercheEflorePresenteur;
37
import org.tela_botanica.del.client.vues.plateformedetermination.forum.ForumPresenteur;
39
import org.tela_botanica.del.client.vues.plateformedetermination.forum.ForumPresenteur;
Line 59... Line 61...
59
		public Panel getVoteProtocole();
61
		public Panel getVoteProtocole();
Line 60... Line 62...
60
 
62
 
Line 61... Line 63...
61
		public Button getBoutonAjoutProposition();
63
		public Button getBoutonAjoutProposition();
62
 
64
 
63
		public Button getBoutonAjoutCommentaire();
65
		public Button getBoutonAjoutCommentaire();
Line 64... Line 66...
64
		
66
 
Line 65... Line 67...
65
		public Button getBoutonAjoutPropositionBas();
67
		public Button getBoutonAjoutPropositionBas();
Line 83... Line 85...
83
	private ObservationService observationService;
85
	private ObservationService observationService;
Line 84... Line 86...
84
 
86
 
85
	public DeterminationPresenteur(Vue vue, ObservationService observationService, ProtocoleService protocoleService) {
87
	public DeterminationPresenteur(Vue vue, ObservationService observationService, ProtocoleService protocoleService) {
86
		this.vue = vue;
88
		this.vue = vue;
87
		this.observationService = observationService;
89
		this.observationService = observationService;
88
		this.protocoleService=protocoleService;
90
		this.protocoleService = protocoleService;
Line 89... Line 91...
89
	}
91
	}
Line 90... Line 92...
90
 
92
 
Line 162... Line 164...
162
 
164
 
163
		ClickHandler clicAjoutProposition = new ClickHandler() {
165
		ClickHandler clicAjoutProposition = new ClickHandler() {
164
			@Override
166
			@Override
165
			public void onClick(ClickEvent event) {
167
			public void onClick(ClickEvent event) {
166
				fenetreOverlaySimplePresenteur = new FenetreOverlaySimplePresenteur(new FenetreOverlayDefilanteVue());
168
				fenetreOverlaySimplePresenteur = new FenetreOverlaySimplePresenteur(new FenetreOverlayDefilanteVue());
167
				fenetreOverlaySimplePresenteur.ouvrirFenetreModale(new FormulairePropositionPresenteur(new FormulairePropositionVue()));
169
				fenetreOverlaySimplePresenteur.ouvrirFenetreModale(new FormulairePropositionPresenteur(new FormulairePropositionVue(), new PropositionDeterminationServiceConcret()));
168
			}
170
			}
169
		};
171
		};
170
		vue.getBoutonAjoutProposition().addClickHandler(clicAjoutProposition);
172
		vue.getBoutonAjoutProposition().addClickHandler(clicAjoutProposition);
171
		vue.getBoutonAjoutPropositionBas().addClickHandler(clicAjoutProposition);
173
		vue.getBoutonAjoutPropositionBas().addClickHandler(clicAjoutProposition);
172
		
174
 
173
		ClickHandler clicAjoutCommentaire = new ClickHandler() {
175
		ClickHandler clicAjoutCommentaire = new ClickHandler() {
174
			@Override
176
			@Override
175
			public void onClick(ClickEvent event) {
177
			public void onClick(ClickEvent event) {
176
				FormulaireCommentairePresenteur commentairePresenteur = new FormulaireCommentairePresenteur(CacheClient.getInstance().getObservationCourante(), new FormulaireCommentaireVue());
178
				FormulaireCommentairePresenteur commentairePresenteur = new FormulaireCommentairePresenteur(CacheClient.getInstance().getObservationCourante(), new CommentaireServiceConcret(), new FormulaireCommentaireVue());
177
				fenetreOverlaySimplePresenteur = new FenetreOverlaySimplePresenteur(new FenetreOverlayDefilanteVue());
179
				fenetreOverlaySimplePresenteur = new FenetreOverlaySimplePresenteur(new FenetreOverlayDefilanteVue());
178
				fenetreOverlaySimplePresenteur.ouvrirFenetreModale(commentairePresenteur);
180
				fenetreOverlaySimplePresenteur.ouvrirFenetreModale(commentairePresenteur);
179
			}
181
			}
180
		};
182
		};