1196 |
gduche |
1 |
package org.tela_botanica.del.client.vues.identiplante.resultats.observations;
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
import com.google.gwt.core.client.GWT;
|
|
|
5 |
import com.google.gwt.event.dom.client.HasClickHandlers;
|
|
|
6 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
7 |
import com.google.gwt.uibinder.client.UiField;
|
|
|
8 |
import com.google.gwt.user.client.ui.Button;
|
|
|
9 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
10 |
import com.google.gwt.user.client.ui.Label;
|
|
|
11 |
import com.google.gwt.user.client.ui.Panel;
|
|
|
12 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
13 |
|
|
|
14 |
public class ObservationVue extends Composite implements ObservationPresenteur.Vue {
|
|
|
15 |
|
|
|
16 |
// Gestion d'UiBinder
|
|
|
17 |
interface Binder extends UiBinder<Widget, ObservationVue> {
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
private static Binder binder = GWT.create(Binder.class);
|
|
|
21 |
|
|
|
22 |
@UiField
|
|
|
23 |
Button boutonAjoutProposition, boutonAjoutCommentaire, boutonPlusDeDetails;
|
|
|
24 |
|
|
|
25 |
@UiField
|
|
|
26 |
Panel determinationsPanel, imagesPanel, metadonnees;
|
|
|
27 |
|
|
|
28 |
@UiField Label nomEspece;
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
public ObservationVue() {
|
|
|
32 |
initWidget(binder.createAndBindUi(this));
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
@Override
|
|
|
36 |
public HasClickHandlers getBoutonAjoutProposition() {
|
|
|
37 |
return boutonAjoutProposition;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
@Override
|
|
|
41 |
public HasClickHandlers getBoutonAjoutCommentaire() {
|
|
|
42 |
return boutonAjoutCommentaire;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
@Override
|
|
|
46 |
public HasClickHandlers getBoutonPlusDeDetails() {
|
|
|
47 |
return boutonPlusDeDetails;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public Panel getDeterminationsPanel() {
|
|
|
51 |
return determinationsPanel;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public void setDeterminationsPanel(Panel determinationsPanel) {
|
|
|
55 |
this.determinationsPanel = determinationsPanel;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public Panel getImagesPanel() {
|
|
|
59 |
return imagesPanel;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public Panel getMetadonneesPanel() {
|
|
|
63 |
return metadonnees;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
@Override
|
|
|
67 |
public HasClickHandlers getNomEspece() {
|
|
|
68 |
return nomEspece;
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
@Override
|
|
|
72 |
public void setNomEspece(String nomEspece) {
|
|
|
73 |
this.nomEspece.setText(nomEspece);
|
|
|
74 |
}
|
|
|
75 |
|
1934 |
aurelien |
76 |
@Override
|
|
|
77 |
public void setNbCommentaires(String nbCommentaires) {
|
|
|
78 |
boutonPlusDeDetails.setText(boutonPlusDeDetails.getText()+" ("+nbCommentaires+")");
|
|
|
79 |
}
|
|
|
80 |
|
1196 |
gduche |
81 |
}
|