Subversion Repositories eFlore/Applications.del

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 aurelien 1
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
2
 
3
import java.util.List;
4
 
5
import org.tela_botanica.del.client.modeles.ObservationDetermination;
6
import org.tela_botanica.del.client.utils.MockDatasource;
7
 
8
import com.google.gwt.core.client.GWT;
9
import com.google.gwt.uibinder.client.UiBinder;
10
import com.google.gwt.uibinder.client.UiField;
11
import com.google.gwt.user.client.ui.Composite;
12
import com.google.gwt.user.client.ui.HTML;
13
import com.google.gwt.user.client.ui.HasWidgets;
14
import com.google.gwt.user.client.ui.Widget;
15
 
46 aurelien 16
public class ForumPresenteur {
17
 
18
	private ForumVue forumVue = new ForumVue();
41 aurelien 19
 
20
	private final MockDatasource validationService = MockDatasource.getInstance();
21
	private List<ObservationDetermination> determinations;
46 aurelien 22
 
23
	private String idObservation = "0";
41 aurelien 24
 
25
	public void go(HasWidgets composite) {
46 aurelien 26
 
27
		chargerCommentaires();
28
		composite.add(forumVue);
41 aurelien 29
	}
30
 
46 aurelien 31
	private void chargerCommentaires() {
41 aurelien 32
		determinations = validationService.getDeterminationData(idObservation);
46 aurelien 33
		forumVue.chargerObservations(determinations);
41 aurelien 34
	}
35
}