Here is my solution, based on the fact that RootPanel.get() gives you an
acces to any element of the page... :


1 : first do your template in HTML, with a CSS layout or whatever you like.
There are tons of css based layout at a google click :-)
2 : in your HTML file, define the 3 areas with <div> tags (with "id"s
attributes)
for example (with an ugly table !):

<table>
 <tr>
  <td colspan=2>
   <div id="header"/>
  </td>
 </tr>
 <tr>
   <td >
    <div id="leftColumn"/>
     </td>
    <td >
      <div id="workingArea"/>
    </td>
  </tr>
</table>

3 : Next, in your GWT module, create 3 panels, and add them in the div tags
with RootPanel.get("id");

Something like :

HorizontalPanel headerPanel;
VerticalPanel columnPanel;
CellPanel workPanel;

// Init panels, add widgets, etc....

 RootPanel.get("header").add(headerPanel);
 RootPanel.get("leftColumn").add(columnPanel);
 RootPanel.get("workingArea").add(workPanel);

et voila :-)
I've used this mechanism several time, it's very easy to do, and it's  also
a very simple way to reuse an existing HTML templates.
Or if you work with a web designer.
GWT is basicaly a DOM manipulator, in fact.

Regards,
O.



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

>
> Hello  i have made a simple template with the use of dockpanel etc
> like the mail application.
> Sth like this
>
> ------------------------------------
>               1                 |
> ----------------------------------
>     |                             |
> 2   |            3               |
>    |                             |
> ----------------------------------
>
> Even though it is what i was thinking of , its insufficient of lack of
> design.
> So i m asking if it is possible to find a html template for example,
> that are plenty in the market, with this format
> and incorporate it into my GWT application. And if this is possible,
> how can i do that????
> Ty.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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