Subversion Repositories eFlore/Applications.coel

Rev

Rev 64 | Go to most recent revision | Show entire file | Regard 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...");
26
		parametresOnglet.addText("Paramêtres de l'application...");
25
		item1.addStyleName("pad-text");
27
		parametresOnglet.addStyleName("pad-text");
26
		
28
		
27
		TabItem item2 = new TabItem("Préférences");
29
		TabItem preferencesOnglet = new TabItem("Préférences");
28
		item2.addText("Préférences de l'application...");
30
		preferencesOnglet.addText("Préférences de l'application...");
29
		item2.addStyleName("pad-text");
31
		preferencesOnglet.addStyleName("pad-text");
30
		
32
		
31
		TabItem item3 = new TabItem("A propos...");
33
		TabItem aproposOnglet = new TabItem("A propos...");
32
		item3.addText("Application : "+(String) Registry.get(RegistreId.APPLI_NOM));
34
		aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>");
33
		item3.addText("Application abréviation : "+(String) Registry.get(RegistreId.APPLI_CODE));
35
		aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE));
34
		item3.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
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 />");
35
		item3.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
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());
36
		item3.addText("Version de GWT : "+GWT.getVersion());
46
		
-
 
47
		aproposOnglet.addStyleName("pad-text");
-
 
48
		
-
 
49
		panneaux.add(parametresOnglet);
-
 
50
		panneaux.add(preferencesOnglet);
Line 37... Line -...
37
		item3.addStyleName("pad-text");
-
 
38
		
-
 
39
		panel.add(item1);
-
 
40
		panel.add(item2);
51
		panneaux.add(aproposOnglet);
41
		
52
		
Line 42... Line 53...
42
		add(panel, new FitData(4));
53
		add(panneaux, new FitData(4));
43
	}
54
	}