Subversion Repositories eFlore/Applications.coel

Rev

Rev 405 | Rev 497 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client;

import org.tela_botanica.client.i18n.AppliConstantes;
import org.tela_botanica.client.modeles.Configuration;
import org.tela_botanica.client.modeles.MenuApplicationId;
import org.tela_botanica.client.vues.PopupChargement;

import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

public class Coel implements EntryPoint {

        private AppliConstantes i18nC = null;
        private Mediateur mediateur = null;
        
        public void onModuleLoad() {
                GXT.hideLoadingPanel("loading");
                                
                i18nC = getI18nConstante();
                
                initialiserRegistre();
                
                mediateur = getMediateur();
                
                // J'appelle directement la page où je travaille
                mediateur.clicMenu(MenuApplicationId.COLLECTION);
        }
        
        protected void initialiserRegistre() {
                Registry.register(RegistreId.APPLI_NOM, i18nC.appliNom());
                Registry.register(RegistreId.APPLI_CODE, i18nC.appliCode());
                Registry.register(RegistreId.APPLI_VERSION, i18nC.appliVersion());
                Registry.register(RegistreId.APPLI_REVISION, "$Revision: 470 $");
                Registry.register(RegistreId.CONFIG, new Configuration());
                Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
        }
        
        protected Mediateur getMediateur() {
                return new Mediateur();
        }
        
        protected AppliConstantes getI18nConstante() {
                return GWT.create(AppliConstantes.class);
        }

}