Subversion Repositories eFlore/Applications.coel

Rev

Rev 64 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 64 Rev 66
Line 1... Line 1...
1
package org.tela_botanica.client.composants;
1
package org.tela_botanica.client.composants;
Line 2... Line 2...
2
 
2
 
Line -... Line 3...
-
 
3
import org.tela_botanica.client.RegistreId;
3
import org.tela_botanica.client.RegistreId;
4
 
-
 
5
import com.extjs.gxt.ui.client.GXT;
4
 
6
import com.extjs.gxt.ui.client.Registry;
5
import com.extjs.gxt.ui.client.Registry;
7
import com.extjs.gxt.ui.client.Version;
6
import com.extjs.gxt.ui.client.widget.TabItem;
8
import com.extjs.gxt.ui.client.widget.TabItem;
7
import com.extjs.gxt.ui.client.widget.TabPanel;
9
import com.extjs.gxt.ui.client.widget.TabPanel;
8
import com.extjs.gxt.ui.client.widget.Window;
10
import com.extjs.gxt.ui.client.widget.Window;
Line 16... Line 18...
16
		setSize(500, 300);
18
		setSize(500, 300);
17
		setPlain(true);
19
		setPlain(true);
18
		setHeading("Paramêtres et préférences");
20
		setHeading("Paramêtres et préférences");
19
		setLayout(new FitLayout());
21
		setLayout(new FitLayout());
Line 20... Line 22...
20
		
22
		
21
		TabPanel panel = new TabPanel();
23
		TabPanel panneaux = new TabPanel();
22
		panel.setBorders(false);
24
		panneaux.setBorders(false);
23
		TabItem item1 = new TabItem("Paramêtres");
25
		TabItem parametresOnglet = new TabItem("Paramêtres");
24
		item1.addText("Paramêtres de l'application...");
-
 
25
		item1.addStyleName("pad-text");
-
 
26
		
-
 
27
		TabItem item2 = new TabItem("Préférences");
-
 
28
		item2.addText("Préférences de l'application...");
-
 
29
		item2.addStyleName("pad-text");
-
 
30
		
-
 
31
		TabItem item3 = new TabItem("A propos...");
-
 
32
		item3.addText("Application : "+(String) Registry.get(RegistreId.APPLI_NOM));
-
 
33
		item3.addText("Application abréviation : "+(String) Registry.get(RegistreId.APPLI_CODE));
-
 
34
		item3.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
-
 
35
		item3.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
-
 
36
		item3.addText("Version de GWT : "+GWT.getVersion());
26
		parametresOnglet.addText("Paramêtres de l'application...");
Line -... Line 27...
-
 
27
		parametresOnglet.addStyleName("pad-text");
37
		item3.addStyleName("pad-text");
28
		
38
		
29
		TabItem preferencesOnglet = new TabItem("Préférences");
Line -... Line 30...
-
 
30
		preferencesOnglet.addText("Préférences de l'application...");
-
 
31
		preferencesOnglet.addStyleName("pad-text");
-
 
32
		
-
 
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());
-
 
46
		
-
 
47
		aproposOnglet.addStyleName("pad-text");
-
 
48
		
-
 
49
		panneaux.add(parametresOnglet);
39
		panel.add(item1);
50
		panneaux.add(preferencesOnglet);
40
		panel.add(item2);
51
		panneaux.add(aproposOnglet);
Line 41... Line 52...
41
		
52
		
42
		add(panel, new FitData(4));
53
		add(panneaux, new FitData(4));