Subversion Repositories eFlore/Applications.coel

Rev

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