Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 11 → Rev 10

/trunk/src/org/tela_botanica/client/Cel.java
5,21 → 5,26
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.RootPanel;
 
import org.tela_botanica.client.TopPanel;
import org.tela_botanica.client.CenterPanel;
import org.tela_botanica.client.LeftPanel;
 
 
 
/**
* 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 Mediator mediator = null;
 
 
/**
* This is the entry point method.
*/
28,7 → 33,7
 
mediator= new Mediator();
mediator.registerCel(this);
mediator.initUser(); // Appelle initAsync suivant
mediator.initUser();
}
36,8 → 41,8
public void initAsync() {
 
topPanel = new TopPanel();
centerPanel = new CenterPanel(mediator);
topPanel = new TopPanel(mediator);
leftPanel = new LeftPanel(mediator);
 
63,11 → 68,13
outer.setWidth("100%");
 
outer.setSpacing(4);
outer.setCellWidth(centerPanel, "85%");
outer.setCellWidth(centerPanel, "100%");
// Window.enableScrolling(false);
Window.setMargin("0px");
 
// Finally, add the outer panel to the RootPanel, so that it will be
// displayed.
RootPanel.get().add(outer);
 
 
74,6 → 81,16
}
public void onWindowResized(int width, int height) {
// Adjust the shortcut panel and detail area to take up the available room
// in the window.
int shortcutHeight = height - leftPanel.getAbsoluteTop() - 8;
if (shortcutHeight < 1)
shortcutHeight = 1;
leftPanel.setHeight("" + shortcutHeight);
 
}
 
 
}