1175 |
aurelien |
1 |
package org.tela_botanica.del.client.composants.preferences;
|
|
|
2 |
|
|
|
3 |
import com.google.gwt.core.client.GWT;
|
|
|
4 |
import com.google.gwt.event.dom.client.HasClickHandlers;
|
|
|
5 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
6 |
import com.google.gwt.uibinder.client.UiField;
|
|
|
7 |
import com.google.gwt.user.client.ui.Button;
|
|
|
8 |
import com.google.gwt.user.client.ui.CheckBox;
|
|
|
9 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
10 |
import com.google.gwt.user.client.ui.Panel;
|
|
|
11 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
12 |
|
|
|
13 |
public class PreferencesVue extends Composite implements PreferencesPresenteur.Vue {
|
|
|
14 |
|
|
|
15 |
@UiField
|
|
|
16 |
Panel panneauChargement, conteneurChamps;
|
|
|
17 |
|
|
|
18 |
@UiField
|
|
|
19 |
public CheckBox recevoirMailsMesObs;
|
|
|
20 |
|
|
|
21 |
@UiField
|
2046 |
mathias |
22 |
public CheckBox recevoirMailsMesCom;
|
|
|
23 |
|
|
|
24 |
@UiField
|
1175 |
aurelien |
25 |
public CheckBox recevoirMailsToutesObs;
|
|
|
26 |
|
|
|
27 |
@UiField
|
|
|
28 |
public Button boutonSauvegarderPreferences;
|
|
|
29 |
|
|
|
30 |
interface PreferencesVueUIiBinder extends UiBinder<Widget, PreferencesVue> {
|
|
|
31 |
};
|
|
|
32 |
|
|
|
33 |
PreferencesVueUIiBinder uiBinder = GWT.create(PreferencesVueUIiBinder.class);
|
|
|
34 |
|
|
|
35 |
public PreferencesVue() {
|
|
|
36 |
initWidget(uiBinder.createAndBindUi(this));
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
@Override
|
|
|
40 |
public void afficherMessageChargement() {
|
|
|
41 |
panneauChargement.setHeight(this.getOffsetHeight()+"px");
|
|
|
42 |
panneauChargement.setVisible(true);
|
|
|
43 |
conteneurChamps.setVisible(false);
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
@Override
|
|
|
47 |
public void cacherMessageChargement() {
|
|
|
48 |
panneauChargement.setVisible(false);
|
|
|
49 |
conteneurChamps.setVisible(true);
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
@Override
|
|
|
53 |
public void setValeurRecevoirMailsMesObs(boolean valeur) {
|
|
|
54 |
recevoirMailsMesObs.setValue(valeur);
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
@Override
|
2046 |
mathias |
58 |
public void setValeurRecevoirMailsMesCom(boolean valeur) {
|
|
|
59 |
recevoirMailsMesCom.setValue(valeur);
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
@Override
|
1175 |
aurelien |
63 |
public void setValeurRecevoirMailsToutesObs(boolean valeur) {
|
|
|
64 |
recevoirMailsToutesObs.setValue(valeur);
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
@Override
|
|
|
68 |
public String getValeurRecevoirMailsMesObs() {
|
|
|
69 |
return (recevoirMailsMesObs.getValue()) ? "1" : "0";
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
@Override
|
2046 |
mathias |
73 |
public String getValeurRecevoirMailsMesCom() {
|
|
|
74 |
return (recevoirMailsMesCom.getValue()) ? "1" : "0";
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
@Override
|
1175 |
aurelien |
78 |
public String getValeurRecevoirMailsToutesObs() {
|
|
|
79 |
return (recevoirMailsToutesObs.getValue()) ? "1" : "0";
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
@Override
|
|
|
83 |
public HasClickHandlers getBoutonSauvegarder() {
|
|
|
84 |
return boutonSauvegarderPreferences;
|
|
|
85 |
}
|
|
|
86 |
}
|