Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Problem with comparison.

Ignore whitespace Rev HEAD → Rev 12

/trunk/src/org/tela_botanica/client/Cel.java
New file
0,0 → 1,90
package org.tela_botanica.client;
 
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.RootPanel;
 
 
 
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Cel implements EntryPoint {
 
private TopPanel topPanel = null;
private CenterPanel centerPanel = null;
private LeftPanel leftPanel = null;
private EntryPanel entryPanel = null;
private Mediator mediator = null;
 
 
/**
* This is the entry point method.
*/
public void onModuleLoad() {
 
 
mediator= new Mediator();
mediator.registerCel(this);
mediator.initUser(); // Appelle initAsync suivant
}
public void initAsync() {
 
centerPanel = new CenterPanel(mediator);
topPanel = new TopPanel(mediator);
leftPanel = new LeftPanel(mediator);
 
entryPanel = new EntryPanel(mediator);
// Information haut de page (nom application, connexion ... etc).
// A regler
entryPanel.setStyleName("item-Input");
 
// DockPanel permet d'arranger plusieurs panneaux au coins cardinaux, le panneau central remplissant
// l'espace laissé.
DockPanel outer = new DockPanel();
outer.add(topPanel, DockPanel.NORTH);
outer.add(centerPanel, DockPanel.CENTER);
outer.add(leftPanel, DockPanel.WEST);
// outer.add(bottomPanel, DockPanel.SOUTH);
centerPanel.setWidth("100%");
// LeftPanel :
// Pour l'instant : relevés.
outer.setWidth("100%");
 
outer.setSpacing(4);
outer.setCellWidth(centerPanel, "85%");
// Window.enableScrolling(false);
Window.setMargin("0px");
 
mediator.onInit();
entryPanel.show();
RootPanel.get().add(outer);
 
 
}
 
 
}