Subversion Repositories eFlore/Applications.coel

Rev

Rev 45 | Rev 60 | 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.controleurs.AppControleur;
import org.tela_botanica.client.controleurs.InstitutionControleur;

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

 /**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Coel implements EntryPoint {
        
        public static final String APPLI_NOM = "Application Nom";
        
        public void onModuleLoad() {  
                GXT.setDefaultTheme(Theme.GRAY, true);
                GXT.hideLoadingPanel("loading");
                
                Registry.register(APPLI_NOM, "Coel");
                
            Dispatcher dispatcher = Dispatcher.get();
            dispatcher.addController(new AppControleur());
            //dispatcher.addController(new RechercheControleur());
            dispatcher.addController(new InstitutionControleur());
            //dispatcher.addController(new CollectionControleur());
            //dispatcher.addController(new PersonneControleur());
            //dispatcher.addController(new PublicationControleur());
            
            dispatcher.dispatch(AppEvenements.Login);
                
        }  
          
}