Subversion Repositories eFlore/Applications.coel

Rev

Rev 102 | Rev 156 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 102 Rev 116
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
-
 
2
 
2
 
3
import org.tela_botanica.client.i18n.Constantes;
3
import org.tela_botanica.client.modeles.Configuration;
4
import org.tela_botanica.client.modeles.Configuration;
4
 
5
 
5
import com.extjs.gxt.ui.client.GXT;
6
import com.extjs.gxt.ui.client.GXT;
6
import com.extjs.gxt.ui.client.Registry;
7
import com.extjs.gxt.ui.client.Registry;
7
import com.extjs.gxt.ui.client.util.Theme;
8
import com.extjs.gxt.ui.client.util.Theme;
8
import com.google.gwt.core.client.EntryPoint;
9
import com.google.gwt.core.client.EntryPoint;
-
 
10
import com.google.gwt.core.client.GWT;
9
 
11
 
10
/**
12
/**
11
 * Entry point classes define <code>onModuleLoad()</code>.
13
 * Entry point classes define <code>onModuleLoad()</code>.
12
 */
14
 */
13
public class Coel implements EntryPoint {
15
public class Coel implements EntryPoint {
14
	
16
 
-
 
17
	private Constantes constantes;
-
 
18
	//private Messages messages;
-
 
19
 
15
	/**
20
	/**
16
	 * This is the entry point method.
21
	 * This is the entry point method.
17
	 */
22
	 */
18
	public void onModuleLoad() {
23
	public void onModuleLoad() {
-
 
24
		constantes = GWT.create(Constantes.class);
-
 
25
		//messages = GWT.create(StockWatcherMessages.class);
-
 
26
 
19
		GXT.setDefaultTheme(Theme.GRAY, true);
27
		GXT.setDefaultTheme(Theme.GRAY, true);
20
		GXT.hideLoadingPanel("loading");
28
		GXT.hideLoadingPanel("loading");
21
		
29
		
22
		Registry.register(RegistreId.APPLI_NOM, "Collections en ligne");
30
		Registry.register(RegistreId.APPLI_NOM, constantes.appliNom());
23
		Registry.register(RegistreId.APPLI_CODE, "COEL");
31
		Registry.register(RegistreId.APPLI_CODE, "COEL");
24
		Registry.register(RegistreId.APPLI_VERSION, "0.1");
32
		Registry.register(RegistreId.APPLI_VERSION, "0.1");
25
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 102 $");
33
		Registry.register(RegistreId.APPLI_REVISION, "$Revision: 116 $");
26
		Registry.register(RegistreId.CONFIG, new Configuration());
34
		Registry.register(RegistreId.CONFIG, new Configuration());
27
 
35
 
28
		new Mediateur();
36
		new Mediateur();
29
		// J'appelle directement la page où je travaille
37
		// J'appelle directement la page où je travaille
30
		Mediateur mediat = Registry.get(RegistreId.MEDIATEUR);
38
		Mediateur mediat = Registry.get(RegistreId.MEDIATEUR);
31
		mediat.clicAjouterStructure();
39
		mediat.clicAjouterStructure();
32
	}
40
	}
33
}
41
}