Subversion Repositories eFlore/Applications.coel

Rev

Rev 344 | Rev 397 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 jpm 1
package org.tela_botanica.client;
2
 
116 jpm 3
import org.tela_botanica.client.i18n.Constantes;
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
 
60 jpm 13
/**
10 jpm 14
 * Entry point classes define <code>onModuleLoad()</code>.
15
 */
16
public class Coel implements EntryPoint {
116 jpm 17
 
395 jp_milcent 18
	public Constantes i18nC;
116 jpm 19
 
344 jp_milcent 20
	public void onModuleLoad() {
51 jpm 21
		GXT.hideLoadingPanel("loading");
395 jp_milcent 22
 
23
		i18nC = GWT.create(Constantes.class);
51 jpm 24
 
395 jp_milcent 25
		initialiserRegistre();
336 gduche 26
 
395 jp_milcent 27
		new Mediateur();
336 gduche 28
 
102 jpm 29
		// J'appelle directement la page où je travaille
30
		Mediateur mediat = Registry.get(RegistreId.MEDIATEUR);
344 jp_milcent 31
		mediat.clicMenu(MenuApplicationId.STRUCTURE);
32
	}
395 jp_milcent 33
 
34
	protected void initialiserRegistre() {
35
		Registry.register(RegistreId.APPLI_NOM, i18nC.appliNom());
36
		Registry.register(RegistreId.APPLI_CODE, i18nC.appliCode());
37
		Registry.register(RegistreId.APPLI_VERSION, i18nC.appliVersion());
38
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 395 $");
39
		Registry.register(RegistreId.CONFIG, new Configuration());
40
		Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
41
	}
336 gduche 42
 
344 jp_milcent 43
}