On May 4, 8:29 pm, markww <[email protected]> wrote:
> Hi Thomas,
>
> I started looking at doing this today, am kind of stuck though. It
> seems that the elements which implement wrap() are all a bit
> specialized - there seems to be a lot of code to support the wrap
> methods. Have you tried doing this for a plain <div>, just wondering
> if this is going to be possible before I start messing around with the
> gwt framework stuff.

A wrap method is typically only 5 to 10 lines long, I wouldn't call
that "a lot of code".

> I thought more users would need a wrap() method for <div>, because for
> those of us trying to merge gwt in with an existing website, it is
> extremely useful,

The "blessed" way of doing things with GWT is to get a RootPanel and
then add your widget as a child. Your MyPanel would then become a
child of the <div id=col1>.

GWT can't give you a FlowPanel.wrap() because FlowPanel isn't supposed
to contain any other elements than the one it manages itself when
adding/removing child widgets.
There could be an HTMLPanel.wrap() for sure, but it wouldn't help you
here.

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