Subversion Repositories eFlore/Applications.coel

Rev

Rev 102 | Rev 268 | 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.Constantes;
import org.tela_botanica.client.modeles.Configuration;

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

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Coel implements EntryPoint {

        private Constantes constantes;
        //private Messages messages;

        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
                constantes = GWT.create(Constantes.class);
                //messages = GWT.create(StockWatcherMessages.class);

                GXT.setDefaultTheme(Theme.GRAY, true);
                GXT.hideLoadingPanel("loading");
                
                Registry.register(RegistreId.APPLI_NOM, constantes.appliNom());
                Registry.register(RegistreId.APPLI_CODE, "COEL");
                Registry.register(RegistreId.APPLI_VERSION, "0.1");
                Registry.register(RegistreId.APPLI_REVISION, "$Revision: 116 $");
                Registry.register(RegistreId.CONFIG, new Configuration());

                new Mediateur();
                // J'appelle directement la page où je travaille
                Mediateur mediat = Registry.get(RegistreId.MEDIATEUR);
                mediat.clicAjouterStructure();
        }
}