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.utils.MockDatasource;
|
|
|
8 |
|
41 |
aurelien |
9 |
import com.google.gwt.core.client.GWT;
|
|
|
10 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
11 |
import com.google.gwt.uibinder.client.UiField;
|
77 |
aurelien |
12 |
import com.google.gwt.user.client.ui.Button;
|
41 |
aurelien |
13 |
import com.google.gwt.user.client.ui.Composite;
|
46 |
aurelien |
14 |
import com.google.gwt.user.client.ui.ListBox;
|
41 |
aurelien |
15 |
import com.google.gwt.user.client.ui.TextArea;
|
|
|
16 |
import com.google.gwt.user.client.ui.TextBox;
|
|
|
17 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
18 |
|
46 |
aurelien |
19 |
public class FormulairePropositionVue extends Composite {
|
|
|
20 |
|
41 |
aurelien |
21 |
@UiField(provided = true)
|
|
|
22 |
public TextBox nomPrenom = new TextBox();
|
|
|
23 |
|
|
|
24 |
@UiField(provided = true)
|
46 |
aurelien |
25 |
public ListBox choixProposition = new ListBox();
|
41 |
aurelien |
26 |
|
|
|
27 |
@UiField(provided = true)
|
|
|
28 |
public TextBox autreProposition = new TextBox();
|
|
|
29 |
|
|
|
30 |
@UiField(provided = true)
|
128 |
aurelien |
31 |
public ListBox pourcentageConfiance = new ListBox();
|
41 |
aurelien |
32 |
|
|
|
33 |
@UiField(provided = true)
|
|
|
34 |
public TextArea commentaires = new TextArea();
|
|
|
35 |
|
77 |
aurelien |
36 |
@UiField(provided = true)
|
|
|
37 |
public Button boutonValidationProposition = new Button();
|
|
|
38 |
|
46 |
aurelien |
39 |
interface FormulairePropositionUIiBinder extends UiBinder<Widget, FormulairePropositionVue>{};
|
41 |
aurelien |
40 |
FormulairePropositionUIiBinder uiBinder = GWT.create(FormulairePropositionUIiBinder.class);
|
|
|
41 |
|
46 |
aurelien |
42 |
public FormulairePropositionVue() {
|
|
|
43 |
initWidget(uiBinder.createAndBindUi(this));
|
41 |
aurelien |
44 |
}
|
|
|
45 |
|
46 |
aurelien |
46 |
public void chargerPropositionsTaxons(ArrayList<String> propositionsTaxons) {
|
105 |
aurelien |
47 |
|
|
|
48 |
choixProposition.clear();
|
|
|
49 |
|
46 |
aurelien |
50 |
for(Iterator<String> it = propositionsTaxons.iterator(); it.hasNext();) {
|
|
|
51 |
choixProposition.addItem(it.next());
|
|
|
52 |
}
|
41 |
aurelien |
53 |
}
|
128 |
aurelien |
54 |
|
|
|
55 |
public void chargerPourcentagesConfiance(ArrayList<String> pourcentagesConfiance) {
|
|
|
56 |
|
|
|
57 |
pourcentageConfiance.clear();
|
|
|
58 |
|
|
|
59 |
for(Iterator<String> it = pourcentagesConfiance.iterator(); it.hasNext();) {
|
|
|
60 |
pourcentageConfiance.addItem(it.next());
|
|
|
61 |
}
|
|
|
62 |
}
|
77 |
aurelien |
63 |
|
|
|
64 |
public TextBox getNomPrenom() {
|
|
|
65 |
return nomPrenom;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public ListBox getChoixProposition() {
|
|
|
69 |
return choixProposition;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public TextBox getAutreProposition() {
|
|
|
73 |
return autreProposition;
|
|
|
74 |
}
|
|
|
75 |
|
128 |
aurelien |
76 |
public ListBox getPourcentageConfiance() {
|
77 |
aurelien |
77 |
return pourcentageConfiance;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public TextArea getCommentaires() {
|
|
|
81 |
return commentaires;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public Button getBoutonValidationProposition() {
|
|
|
85 |
return boutonValidationProposition;
|
|
|
86 |
}
|
41 |
aurelien |
87 |
}
|