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)
|
|
|
31 |
public TextBox pourcentageConfiance = new TextBox();
|
|
|
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) {
|
|
|
47 |
for(Iterator<String> it = propositionsTaxons.iterator(); it.hasNext();) {
|
|
|
48 |
choixProposition.addItem(it.next());
|
|
|
49 |
}
|
41 |
aurelien |
50 |
}
|
77 |
aurelien |
51 |
|
|
|
52 |
public TextBox getNomPrenom() {
|
|
|
53 |
return nomPrenom;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public ListBox getChoixProposition() {
|
|
|
57 |
return choixProposition;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public TextBox getAutreProposition() {
|
|
|
61 |
return autreProposition;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public TextBox getPourcentageConfiance() {
|
|
|
65 |
return pourcentageConfiance;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public TextArea getCommentaires() {
|
|
|
69 |
return commentaires;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public Button getBoutonValidationProposition() {
|
|
|
73 |
return boutonValidationProposition;
|
|
|
74 |
}
|
41 |
aurelien |
75 |
}
|