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