Subversion Repositories eFlore/Applications.coel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 jpm 1
package org.tela_botanica.client;
2
 
397 jp_milcent 3
import org.tela_botanica.client.i18n.AppliConstantes;
60 jpm 4
import org.tela_botanica.client.modeles.Configuration;
344 jp_milcent 5
import org.tela_botanica.client.modeles.MenuApplicationId;
336 gduche 6
import org.tela_botanica.client.vues.PopupChargement;
51 jpm 7
 
8
import com.extjs.gxt.ui.client.GXT;
9
import com.extjs.gxt.ui.client.Registry;
10 jpm 10
import com.google.gwt.core.client.EntryPoint;
116 jpm 11
import com.google.gwt.core.client.GWT;
10 jpm 12
 
13
public class Coel implements EntryPoint {
116 jpm 14
 
397 jp_milcent 15
	public AppliConstantes i18nC;
116 jpm 16
 
344 jp_milcent 17
	public void onModuleLoad() {
51 jpm 18
		GXT.hideLoadingPanel("loading");
395 jp_milcent 19
 
397 jp_milcent 20
		i18nC = GWT.create(AppliConstantes.class);
51 jpm 21
 
395 jp_milcent 22
		initialiserRegistre();
336 gduche 23
 
397 jp_milcent 24
		Mediateur mediateur = new Mediateur();
336 gduche 25
 
102 jpm 26
		// J'appelle directement la page où je travaille
397 jp_milcent 27
		mediateur.clicMenu(MenuApplicationId.STRUCTURE);
344 jp_milcent 28
	}
395 jp_milcent 29
 
30
	protected void initialiserRegistre() {
31
		Registry.register(RegistreId.APPLI_NOM, i18nC.appliNom());
32
		Registry.register(RegistreId.APPLI_CODE, i18nC.appliCode());
33
		Registry.register(RegistreId.APPLI_VERSION, i18nC.appliVersion());
34
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 397 $");
35
		Registry.register(RegistreId.CONFIG, new Configuration());
36
		Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
37
	}
336 gduche 38
 
344 jp_milcent 39
}