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