| Line 1... |
Line 1... |
| 1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues;
|
| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| - |
|
3 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
| 3 |
import org.tela_botanica.client.CarnetEnLigneMediateur;
|
4 |
import org.tela_botanica.client.i18n.Msg;
|
| 4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
5 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 5 |
import com.google.gwt.event.logical.shared.ValueChangeEvent;
|
6 |
import com.google.gwt.event.logical.shared.ValueChangeEvent;
|
| 6 |
import com.google.gwt.event.logical.shared.ValueChangeHandler;
|
7 |
import com.google.gwt.event.logical.shared.ValueChangeHandler;
|
| 7 |
import com.google.gwt.user.client.ui.CheckBox;
|
8 |
import com.google.gwt.user.client.ui.CheckBox;
|
| Line 16... |
Line 17... |
| 16 |
public class FenetreLicenceVue extends com.gwtext.client.widgets.Window implements Rafraichissable {
|
17 |
public class FenetreLicenceVue extends com.gwtext.client.widgets.Window implements Rafraichissable {
|
| Line 17... |
Line 18... |
| 17 |
|
18 |
|
| Line 18... |
Line 19... |
| 18 |
CarnetEnLigneMediateur cm = null;
|
19 |
CarnetEnLigneMediateur cm = null;
|
| 19 |
|
20 |
|
| 20 |
private CheckBox accepterLicence = new CheckBox();
|
21 |
private CheckBox accepterLicence = new CheckBox();
|
| Line 21... |
Line 22... |
| 21 |
private Button validerAcceptationLicence = new Button("Valider");
|
22 |
private Button validerAcceptationLicence = new Button(Msg.get("valider"));
|
| 22 |
private Button annulerAcceptationLicence = new Button("Refuser");
|
23 |
private Button annulerAcceptationLicence = new Button(Msg.get("Refuser"));
|
| 23 |
|
24 |
|
| 24 |
// C'est moche mais ça évite de la transmettre du serveur ou de créer un fichier de config pour la licence
|
25 |
// C'est moche mais ça évite de la transmettre du serveur ou de créer un fichier de config pour la licence
|
| Line 55... |
Line 56... |
| 55 |
public FenetreLicenceVue(CarnetEnLigneMediateur cm) {
|
56 |
public FenetreLicenceVue(CarnetEnLigneMediateur cm) {
|
| Line 56... |
Line 57... |
| 56 |
|
57 |
|
| Line 57... |
Line 58... |
| 57 |
super();
|
58 |
super();
|
| 58 |
|
- |
|
| 59 |
this.cm = cm;
|
59 |
|
| 60 |
|
60 |
this.cm = cm;
|
| 61 |
setTitle("Acceptation de la licence du carnet en ligne");
|
61 |
setTitle(Msg.get("acceptation-licence"));
|
| 62 |
Panel conteneurHtml = new Panel();
|
62 |
Panel conteneurHtml = new Panel();
|
| 63 |
conteneurHtml.setHtml(licence);
|
63 |
conteneurHtml.setHtml(licence);
|
| 64 |
conteneurHtml.setHeight(230);
|
64 |
conteneurHtml.setHeight(230);
|
| Line 77... |
Line 77... |
| 77 |
conteneurCheckbox.setHeader(false);
|
77 |
conteneurCheckbox.setHeader(false);
|
| Line 78... |
Line 78... |
| 78 |
|
78 |
|
| 79 |
Label labelCheckboxAccepterLicence = new Label();
|
79 |
Label labelCheckboxAccepterLicence = new Label();
|
| Line 80... |
Line 80... |
| 80 |
labelCheckboxAccepterLicence.setStyleName("display:inline");
|
80 |
labelCheckboxAccepterLicence.setStyleName("display:inline");
|
| 81 |
|
81 |
|
| Line 82... |
Line 82... |
| 82 |
accepterLicence.setText(" J'ai lu et j'accepte la licence");
|
82 |
accepterLicence.setText(" "+Msg.get("lu-accepte-licence"));
|
| 83 |
accepterLicence.setStyleName("accepter_licence");
|
83 |
accepterLicence.setStyleName("accepter_licence");
|