Possible to embed GWT UIObjects inside of gwt-graphics objects?

26 views
Skip to first unread message

Peter Murray

unread,
Dec 6, 2011, 3:03:20 PM12/6/11
to gwt-gr...@googlegroups.com

Greetings folks,

Would it be possible to embed GWT UIObjects inside of gwt-graphics objects?  It seems like SVG has support for embedding standard html...  

The goal here is a generalized canvas concept where some of the objects in the canvas are actually GWT widgets (complete with interaction etc).

Cheers,

pete

Tom

unread,
Dec 23, 2011, 2:16:51 AM12/23/11
to GWT Graphics
Hi all,

I'm interested in the answer to Pete's question, as well. I was
wondering how to place "overlayed" GWT UIObjects on a drawing area,
but embedding them directly into the SVG sounds better to me.

By the way, when I'd like to participate in development of GWT
Graphics, what do I have to do?

Thanks,
Tom

Jovan Perovic

unread,
Dec 23, 2011, 5:49:09 AM12/23/11
to gwt-gr...@googlegroups.com
I believe embedding native UI objects is not possible. The only way to achieve anything similar is to build your own SVG buttons and provide event handlers to it on your own. It's tricky task to say the least.

Now, overlaying is quite different story as you would only need XY coordinates and Button object (possibly serialized to preserve all the properties?) in order to place it on top of canvas.

Hope this helps....

Regards,
Jovan
Reply all
Reply to author
Forward
0 new messages