5,12 → 5,8 |
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>. |
*/ |
17,7 → 13,6 |
public class Cel implements EntryPoint { |
|
|
|
private TopPanel topPanel = null; |
private CenterPanel centerPanel = null; |
private LeftPanel leftPanel = null; |
33,7 → 28,7 |
|
mediator= new Mediator(); |
mediator.registerCel(this); |
mediator.initUser(); |
mediator.initUser(); // Appelle initAsync suivant |
|
|
} |
41,8 → 36,8 |
public void initAsync() { |
|
|
topPanel = new TopPanel(); |
centerPanel = new CenterPanel(mediator); |
topPanel = new TopPanel(mediator); |
leftPanel = new LeftPanel(mediator); |
|
|
68,13 → 63,11 |
outer.setWidth("100%"); |
|
outer.setSpacing(4); |
outer.setCellWidth(centerPanel, "100%"); |
outer.setCellWidth(centerPanel, "85%"); |
|
// Window.enableScrolling(false); |
Window.setMargin("0px"); |
|
// Finally, add the outer panel to the RootPanel, so that it will be |
// displayed. |
RootPanel.get().add(outer); |
|
|
81,16 → 74,6 |
} |
|
|
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); |
|
} |
|
|
|
} |