480 |
benjamin |
1 |
package org.tela_botanica.del.client.vues.rechercheobservations.resultats.observationdeterminations;
|
436 |
benjamin |
2 |
|
|
|
3 |
import com.google.gwt.core.client.GWT;
|
|
|
4 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
5 |
import com.google.gwt.uibinder.client.UiField;
|
|
|
6 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
7 |
import com.google.gwt.user.client.ui.FlexTable;
|
|
|
8 |
import com.google.gwt.user.client.ui.IsWidget;
|
|
|
9 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
10 |
|
|
|
11 |
public class ObservationDeterminationVue extends Composite implements ObservationDeterminationPresenteur.Vue {
|
|
|
12 |
|
|
|
13 |
// Gestion d'UiBinder
|
|
|
14 |
interface Binder extends UiBinder<Widget, ObservationDeterminationVue> {
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
private static Binder binder = GWT.create(Binder.class);
|
|
|
18 |
|
|
|
19 |
@UiField
|
|
|
20 |
protected FlexTable tableauPropositions;
|
|
|
21 |
|
|
|
22 |
public FlexTable getTableauPropositions() {
|
|
|
23 |
return tableauPropositions;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public ObservationDeterminationVue() {
|
|
|
27 |
initWidget(binder.createAndBindUi(this));
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
@Override
|
|
|
31 |
public void setTexteTableau(int ligne, int colonne, String texte) {
|
|
|
32 |
tableauPropositions.setText(ligne, colonne, texte);
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
@Override
|
|
|
36 |
public void setElementTableau(int ligne, int colonne, IsWidget element) {
|
|
|
37 |
tableauPropositions.setWidget(ligne, colonne, element.asWidget());
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
}
|