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;
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;
493 jp_milcent 18
	public static final Images IMAGES = GWT.create(Images.class);
405 jp_milcent 19
 
344 jp_milcent 20
	public void onModuleLoad() {
51 jpm 21
		GXT.hideLoadingPanel("loading");
395 jp_milcent 22
 
405 jp_milcent 23
		i18nC = getI18nConstante();
51 jpm 24
 
395 jp_milcent 25
		initialiserRegistre();
336 gduche 26
 
405 jp_milcent 27
		mediateur = getMediateur();
336 gduche 28
 
102 jpm 29
		// J'appelle directement la page où je travaille
470 jp_milcent 30
		mediateur.clicMenu(MenuApplicationId.COLLECTION);
344 jp_milcent 31
	}
395 jp_milcent 32
 
33
	protected void initialiserRegistre() {
34
		Registry.register(RegistreId.APPLI_NOM, i18nC.appliNom());
35
		Registry.register(RegistreId.APPLI_CODE, i18nC.appliCode());
36
		Registry.register(RegistreId.APPLI_VERSION, i18nC.appliVersion());
37
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 493 $");
38
		Registry.register(RegistreId.CONFIG, new Configuration());
39
		Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
40
	}
405 jp_milcent 41
 
42
	protected Mediateur getMediateur() {
43
		return new Mediateur();
44
	}
45
 
46
	protected AppliConstantes getI18nConstante() {
47
		return GWT.create(AppliConstantes.class);
48
	}
336 gduche 49
 
344 jp_milcent 50
}