1 |
package org.tela_botanica.client.composants;
|
1 |
package org.tela_botanica.client.composants;
|
2 |
|
2 |
|
3 |
import org.tela_botanica.client.RegistreId;
|
3 |
import org.tela_botanica.client.RegistreId;
|
4 |
import org.tela_botanica.client.images.Images;
|
4 |
import org.tela_botanica.client.images.Images;
|
5 |
|
5 |
|
6 |
import com.extjs.gxt.ui.client.GXT;
|
6 |
import com.extjs.gxt.ui.client.GXT;
|
7 |
import com.extjs.gxt.ui.client.Registry;
|
7 |
import com.extjs.gxt.ui.client.Registry;
|
8 |
import com.extjs.gxt.ui.client.Version;
|
8 |
import com.extjs.gxt.ui.client.Version;
|
9 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
9 |
import com.extjs.gxt.ui.client.widget.TabItem;
|
10 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
10 |
import com.extjs.gxt.ui.client.widget.TabPanel;
|
11 |
import com.extjs.gxt.ui.client.widget.Window;
|
11 |
import com.extjs.gxt.ui.client.widget.Window;
|
12 |
import com.extjs.gxt.ui.client.widget.layout.FitData;
|
12 |
import com.extjs.gxt.ui.client.widget.layout.FitData;
|
13 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
13 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
14 |
import com.google.gwt.core.client.GWT;
|
14 |
import com.google.gwt.core.client.GWT;
|
15 |
|
15 |
|
16 |
public class ParametreFenetre extends Window {
|
16 |
public class ParametreFenetre extends Window {
|
17 |
|
17 |
|
18 |
public ParametreFenetre() {
|
18 |
public ParametreFenetre() {
|
19 |
setSize(500, 300);
|
19 |
setSize(500, 300);
|
20 |
setPlain(true);
|
20 |
setPlain(true);
|
21 |
setHeading("Paramêtres et préférences");
|
21 |
setHeading("Paramêtres et préférences");
|
22 |
setIcon(Images.ICONES.application());
|
22 |
setIcon(Images.ICONES.application());
|
23 |
setLayout(new FitLayout());
|
23 |
setLayout(new FitLayout());
|
24 |
|
24 |
|
25 |
TabPanel panneaux = new TabPanel();
|
25 |
TabPanel panneaux = new TabPanel();
|
26 |
panneaux.setBorders(false);
|
26 |
panneaux.setBorders(false);
|
27 |
TabItem parametresOnglet = new TabItem("Paramêtres");
|
27 |
TabItem parametresOnglet = new TabItem("Paramêtres");
|
28 |
parametresOnglet.setIcon(Images.ICONES.engrenages());
|
28 |
parametresOnglet.setIcon(Images.ICONES.engrenages());
|
29 |
parametresOnglet.addText("Paramêtres de l'application...");
|
29 |
parametresOnglet.addText("Paramêtres de l'application...");
|
30 |
parametresOnglet.addStyleName("pad-text");
|
30 |
parametresOnglet.addStyleName("pad-text");
|
31 |
|
31 |
|
32 |
TabItem preferencesOnglet = new TabItem("Préférences");
|
32 |
TabItem preferencesOnglet = new TabItem("Préférences");
|
33 |
preferencesOnglet.addText("Préférences de l'application...");
|
33 |
preferencesOnglet.addText("Préférences de l'application...");
|
34 |
preferencesOnglet.setIcon(Images.ICONES.groupeEngrenage());
|
34 |
preferencesOnglet.setIcon(Images.ICONES.groupeEngrenage());
|
35 |
preferencesOnglet.addStyleName("pad-text");
|
35 |
preferencesOnglet.addStyleName("pad-text");
|
36 |
|
36 |
|
37 |
TabItem aproposOnglet = new TabItem("A propos...");
|
37 |
TabItem aproposOnglet = new TabItem("A propos...");
|
38 |
aproposOnglet.setIcon(Images.ICONES.information());
|
38 |
aproposOnglet.setIcon(Images.ICONES.information());
|
39 |
aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>");
|
39 |
aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>");
|
40 |
aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE));
|
40 |
aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE));
|
41 |
aproposOnglet.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
|
41 |
aproposOnglet.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
|
42 |
aproposOnglet.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
|
42 |
aproposOnglet.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
|
43 |
aproposOnglet.addText("<hr />");
|
43 |
aproposOnglet.addText("<hr />");
|
- |
|
44 |
aproposOnglet.addText("<h1>"+"Compilation"+"</h1>");
|
- |
|
45 |
aproposOnglet.addText("Date : "+(String) Registry.get(RegistreId.APPLI_COMPILATION_DATE_HEURE));
|
- |
|
46 |
aproposOnglet.addText("Version de Java : "+(String) Registry.get(RegistreId.APPLI_COMPILATION_JAVA_VERSION));
|
- |
|
47 |
aproposOnglet.addText("<hr />");
|
44 |
aproposOnglet.addText("<h1>"+"Cadre de travail"+"</h1>");
|
48 |
aproposOnglet.addText("<h1>"+"Cadre de travail"+"</h1>");
|
45 |
aproposOnglet.addText("GWT : v"+GWT.getVersion());
|
49 |
aproposOnglet.addText("GWT : v"+GWT.getVersion());
|
46 |
Version gxtVersion = GXT.getVersion();
|
50 |
Version gxtVersion = GXT.getVersion();
|
47 |
aproposOnglet.addText("GXT : v"+gxtVersion.getRelease());
|
51 |
aproposOnglet.addText("GXT : v"+gxtVersion.getRelease());
|
48 |
aproposOnglet.addText("<hr />");
|
52 |
aproposOnglet.addText("<hr />");
|
49 |
aproposOnglet.addText("<h1>"+"Navigateur"+"</h1>");
|
53 |
aproposOnglet.addText("<h1>"+"Navigateur"+"</h1>");
|
50 |
aproposOnglet.addText("COEL fonctionne actuellement dans : "+GXT.getUserAgent());
|
54 |
aproposOnglet.addText("COEL fonctionne actuellement dans : "+GXT.getUserAgent());
|
51 |
|
55 |
|
52 |
aproposOnglet.addStyleName("pad-text");
|
56 |
aproposOnglet.addStyleName("pad-text");
|
53 |
|
57 |
|
54 |
panneaux.add(parametresOnglet);
|
58 |
panneaux.add(parametresOnglet);
|
55 |
panneaux.add(preferencesOnglet);
|
59 |
panneaux.add(preferencesOnglet);
|
56 |
panneaux.add(aproposOnglet);
|
60 |
panneaux.add(aproposOnglet);
|
57 |
|
61 |
|
58 |
add(panneaux, new FitData(4));
|
62 |
add(panneaux, new FitData(4));
|
59 |
}
|
63 |
}
|
60 |
|
64 |
|
61 |
}
|
65 |
}
|