Subversion Repositories eFlore/Applications.coel

Rev

Rev 395 | Rev 470 | 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 {

        public AppliConstantes i18nC;

        public void onModuleLoad() {
                GXT.hideLoadingPanel("loading");
                                
                i18nC = GWT.create(AppliConstantes.class);
                
                initialiserRegistre();
                
                Mediateur mediateur = new Mediateur();
                
                // J'appelle directement la page où je travaille
                mediateur.clicMenu(MenuApplicationId.STRUCTURE);
        }
        
        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: 397 $");
                Registry.register(RegistreId.CONFIG, new Configuration());
                Registry.register(RegistreId.POPUP_CHARGEMENT, new PopupChargement());
        }

}