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