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");
|
|
|
21 |
setLayout(new FitLayout());
|
|
|
22 |
|
66 |
jpm |
23 |
TabPanel panneaux = new TabPanel();
|
|
|
24 |
panneaux.setBorders(false);
|
|
|
25 |
TabItem parametresOnglet = new TabItem("Paramêtres");
|
|
|
26 |
parametresOnglet.addText("Paramêtres de l'application...");
|
|
|
27 |
parametresOnglet.addStyleName("pad-text");
|
64 |
jpm |
28 |
|
66 |
jpm |
29 |
TabItem preferencesOnglet = new TabItem("Préférences");
|
|
|
30 |
preferencesOnglet.addText("Préférences de l'application...");
|
|
|
31 |
preferencesOnglet.addStyleName("pad-text");
|
64 |
jpm |
32 |
|
66 |
jpm |
33 |
TabItem aproposOnglet = new TabItem("A propos...");
|
|
|
34 |
aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>");
|
|
|
35 |
aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE));
|
|
|
36 |
aproposOnglet.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
|
|
|
37 |
aproposOnglet.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
|
|
|
38 |
aproposOnglet.addText("<hr />");
|
|
|
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());
|
64 |
jpm |
46 |
|
66 |
jpm |
47 |
aproposOnglet.addStyleName("pad-text");
|
64 |
jpm |
48 |
|
66 |
jpm |
49 |
panneaux.add(parametresOnglet);
|
|
|
50 |
panneaux.add(preferencesOnglet);
|
|
|
51 |
panneaux.add(aproposOnglet);
|
|
|
52 |
|
|
|
53 |
add(panneaux, new FitData(4));
|
64 |
jpm |
54 |
}
|
|
|
55 |
|
|
|
56 |
}
|