2,7 → 2,9 |
|
import org.tela_botanica.client.RegistreId; |
|
import com.extjs.gxt.ui.client.GXT; |
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.Version; |
import com.extjs.gxt.ui.client.widget.TabItem; |
import com.extjs.gxt.ui.client.widget.TabPanel; |
import com.extjs.gxt.ui.client.widget.Window; |
18,28 → 20,37 |
setHeading("Paramêtres et préférences"); |
setLayout(new FitLayout()); |
|
TabPanel panel = new TabPanel(); |
panel.setBorders(false); |
TabItem item1 = new TabItem("Paramêtres"); |
item1.addText("Paramêtres de l'application..."); |
item1.addStyleName("pad-text"); |
TabPanel panneaux = new TabPanel(); |
panneaux.setBorders(false); |
TabItem parametresOnglet = new TabItem("Paramêtres"); |
parametresOnglet.addText("Paramêtres de l'application..."); |
parametresOnglet.addStyleName("pad-text"); |
|
TabItem item2 = new TabItem("Préférences"); |
item2.addText("Préférences de l'application..."); |
item2.addStyleName("pad-text"); |
TabItem preferencesOnglet = new TabItem("Préférences"); |
preferencesOnglet.addText("Préférences de l'application..."); |
preferencesOnglet.addStyleName("pad-text"); |
|
TabItem item3 = new TabItem("A propos..."); |
item3.addText("Application : "+(String) Registry.get(RegistreId.APPLI_NOM)); |
item3.addText("Application abréviation : "+(String) Registry.get(RegistreId.APPLI_CODE)); |
item3.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION)); |
item3.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION)); |
item3.addText("Version de GWT : "+GWT.getVersion()); |
item3.addStyleName("pad-text"); |
TabItem aproposOnglet = new TabItem("A propos..."); |
aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>"); |
aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE)); |
aproposOnglet.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION)); |
aproposOnglet.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION)); |
aproposOnglet.addText("<hr />"); |
aproposOnglet.addText("<h1>"+"Cadre de travail"+"</h1>"); |
aproposOnglet.addText("GWT : v"+GWT.getVersion()); |
Version gxtVersion = GXT.getVersion(); |
aproposOnglet.addText("GXT : v"+gxtVersion.getRelease()); |
aproposOnglet.addText("<hr />"); |
aproposOnglet.addText("<h1>"+"Navigateur"+"</h1>"); |
aproposOnglet.addText("COEL fonctionne actuellement dans : "+GXT.getUserAgent()); |
|
panel.add(item1); |
panel.add(item2); |
aproposOnglet.addStyleName("pad-text"); |
|
add(panel, new FitData(4)); |
panneaux.add(parametresOnglet); |
panneaux.add(preferencesOnglet); |
panneaux.add(aproposOnglet); |
|
add(panneaux, new FitData(4)); |
} |
|
} |