41 |
aurelien |
1 |
package org.tela_botanica.del.client.vues.plateformedetermination.formulaireproposition;
|
|
|
2 |
|
46 |
aurelien |
3 |
import java.util.ArrayList;
|
|
|
4 |
import java.util.Iterator;
|
|
|
5 |
import java.util.List;
|
|
|
6 |
|
|
|
7 |
import org.tela_botanica.del.client.modeles.ObservationDetermination;
|
|
|
8 |
import org.tela_botanica.del.client.utils.MockDatasource;
|
|
|
9 |
|
41 |
aurelien |
10 |
import com.google.gwt.core.client.GWT;
|
|
|
11 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
12 |
import com.google.gwt.uibinder.client.UiField;
|
77 |
aurelien |
13 |
import com.google.gwt.user.client.ui.Button;
|
41 |
aurelien |
14 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
15 |
import com.google.gwt.user.client.ui.HasWidgets;
|
46 |
aurelien |
16 |
import com.google.gwt.user.client.ui.ListBox;
|
41 |
aurelien |
17 |
import com.google.gwt.user.client.ui.TextArea;
|
|
|
18 |
import com.google.gwt.user.client.ui.TextBox;
|
|
|
19 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
20 |
|
46 |
aurelien |
21 |
public class FormulairePropositionVue extends Composite {
|
|
|
22 |
|
41 |
aurelien |
23 |
@UiField(provided = true)
|
|
|
24 |
public TextBox nomPrenom = new TextBox();
|
|
|
25 |
|
|
|
26 |
@UiField(provided = true)
|
46 |
aurelien |
27 |
public ListBox choixProposition = new ListBox();
|
41 |
aurelien |
28 |
|
|
|
29 |
@UiField(provided = true)
|
|
|
30 |
public TextBox autreProposition = new TextBox();
|
|
|
31 |
|
|
|
32 |
@UiField(provided = true)
|
|
|
33 |
public TextBox pourcentageConfiance = new TextBox();
|
|
|
34 |
|
|
|
35 |
@UiField(provided = true)
|
|
|
36 |
public TextArea commentaires = new TextArea();
|
|
|
37 |
|
77 |
aurelien |
38 |
@UiField(provided = true)
|
|
|
39 |
public Button boutonValidationProposition = new Button();
|
|
|
40 |
|
46 |
aurelien |
41 |
interface FormulairePropositionUIiBinder extends UiBinder<Widget, FormulairePropositionVue>{};
|
41 |
aurelien |
42 |
FormulairePropositionUIiBinder uiBinder = GWT.create(FormulairePropositionUIiBinder.class);
|
|
|
43 |
|
46 |
aurelien |
44 |
public FormulairePropositionVue() {
|
|
|
45 |
initWidget(uiBinder.createAndBindUi(this));
|
41 |
aurelien |
46 |
}
|
|
|
47 |
|
46 |
aurelien |
48 |
public void chargerPropositionsTaxons(ArrayList<String> propositionsTaxons) {
|
|
|
49 |
for(Iterator<String> it = propositionsTaxons.iterator(); it.hasNext();) {
|
|
|
50 |
choixProposition.addItem(it.next());
|
|
|
51 |
}
|
41 |
aurelien |
52 |
}
|
77 |
aurelien |
53 |
|
|
|
54 |
public TextBox getNomPrenom() {
|
|
|
55 |
return nomPrenom;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public ListBox getChoixProposition() {
|
|
|
59 |
return choixProposition;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public TextBox getAutreProposition() {
|
|
|
63 |
return autreProposition;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public TextBox getPourcentageConfiance() {
|
|
|
67 |
return pourcentageConfiance;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public TextArea getCommentaires() {
|
|
|
71 |
return commentaires;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public Button getBoutonValidationProposition() {
|
|
|
75 |
return boutonValidationProposition;
|
|
|
76 |
}
|
41 |
aurelien |
77 |
}
|