Well in fact, the Dockpanel is useless in this case.
All the layout is managed in the HTML page.

It would be something like :

*RootPanel.get("header").add(topPanel);
RootPanel.get("left").add(new2);
RootPanel.get("center").add(new1);
*
The main idea is to do all the layout stuff in the HTML page.
By layout, I mean for example the fact that the "new2" panel is 20% width,
etc.
All this job is done in CSS, and not managed by GWT.

and you can insert "simple" panel in this page by calling
RootPanel.get("id").add(...)

O.



2008/12/8 jake H <[EMAIL PROTECTED]>

>
> Ty a lot!!!
> I quite understand how to manipulate with elements etc, but I m little
> bit frustrated how can i implement this with DockPanel.
>
> menu.java
> -----------
>  public static DockPanel outer1 = new DockPanel();
>
>  public static final Images images = GWT.create(Images.class);
>  public TopPanel topPanel = new TopPanel(images);
>  public AristeroMenu new2 = new AristeroMenu(images);
>  public static DexiMenu new1 = new DexiMenu("test");
>
> public void onModuleLoad() {
>
>    topPanel.setWidth("100%");
>    new2.setWidth("70%");
>    new1.setWidth("100%");
>
>    outer1.add(topPanel, DockPanel.NORTH);
>    outer1.add(new2, DockPanel.WEST);
>    outer1.add(new1, DockPanel.CENTER);
>    outer1.setWidth("100%");
>
>    outer1.setSpacing(4);
>    RootPanel.get().add(outer1);
>  }
>
>
>
>
>  And i m wondering how to do this.
> Is this correct?
>
>  RootPanel.get("header").add(outer1.add(topPanel, DockPanel.NORTH));
>  RootPanel.get("left").add(outer1.add(new2, DockPanel.WEST));
>  RootPanel.get("center").add(outer1.add(new1, DockPanel.CENTER));
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to