If your dom elements are all of a particular type that has a GWT
analog, you can possibly wrap them using a convenience wrap() method.
For example, if they're all <a> elements, you can wrap them with
Anchor.wrap(element).
If you have a diverse (or unrepresented) group of elements, you should
just be able to run this code:
Widget w = new Widget();
w.setElement(element);
Derek
On Jun 6, 6:46 am, Dennis Haupt <d.haup...@googlemail.com> wrote:
> i am trying to write a function which generically collections dom elements
> and adds them to complexpanels. i can get the dom elements, but how do i
> add them to panels? panels need widgets. is there a way to convert them?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment