Subversion Repositories eFlore/Applications.coel

Rev

Rev 493 | Rev 501 | 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
 
397 jp_milcent 3
import org.tela_botanica.client.i18n.AppliConstantes;
493 jp_milcent 4
import org.tela_botanica.client.images.Images;
60 jpm 5
import org.tela_botanica.client.modeles.Configuration;
344 jp_milcent 6
import org.tela_botanica.client.modeles.MenuApplicationId;
336 gduche 7
import org.tela_botanica.client.vues.PopupChargement;
51 jpm 8
 
9
import com.extjs.gxt.ui.client.GXT;
10
import com.extjs.gxt.ui.client.Registry;
10 jpm 11
import com.google.gwt.core.client.EntryPoint;
116 jpm 12
import com.google.gwt.core.client.GWT;
10 jpm 13
 
14
public class Coel implements EntryPoint {
116 jpm 15
 
405 jp_milcent 16
	private AppliConstantes i18nC = null;
17
	private Mediateur mediateur = null;
18
 
344 jp_milcent 19
	public void onModuleLoad() {
51 jpm 20
		GXT.hideLoadingPanel("loading");
395 jp_milcent 21
 
405 jp_milcent 22
		i18nC = getI18nConstante();
51 jpm 23
 
395 jp_milcent 24
		initialiserRegistre();
336 gduche 25
 
405 jp_milcent 26
		mediateur = getMediateur();
336 gduche 27
 
102 jpm 28
		// J'appelle directement la page où je travaille
470 jp_milcent 29
		mediateur.clicMenu(MenuApplicationId.COLLECTION);
344 jp_milcent 30
	}
395 jp_milcent 31
 
32
	protected void initialiserRegistre() {
33
		Registry.register(RegistreId.APPLI_NOM, i18nC.appliNom());
34
		Registry.register(RegistreId.APPLI_CODE, i18nC.appliCode());
35
		Registry.register(RegistreId.APPLI_VERSION, i18nC.appliVersion());
36
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 497 $");
37
		Registry.register(RegistreId.CONFIG, new Configuration());
38
		Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
39
	}
405 jp_milcent 40
 
41
	protected Mediateur getMediateur() {
42
		return new Mediateur();
43
	}
44
 
45
	protected AppliConstantes getI18nConstante() {
46
		return GWT.create(AppliConstantes.class);
47
	}
336 gduche 48
 
344 jp_milcent 49
}