Friday, January 20, 2012

Re: Drag and Drop API in GWT 2.4

Thank you Thomas. I will try your suggestion of AbsolutePanel within a
FocusPanel. I suppose the container FocusPanel receives the drop
(mouse) events that actually occur within the child AbsolutePanel.

I am also intrigued by your comment on gwt-dnd. It does look promising
for our requirements. Thanks to Allen Sauer. I got the impression that
GWT 2.4 is natively trying to support the same functionality offered
by gwt-dnd. I noticed Allen Sauer joined Google's DND team/project.
(What is your plan Allen?)

Again, thank you Thomas for your helpful reply!


On Jan 20, 3:03 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> Er, put an AbsolutePanel in a FocusPanel, and add a DropHandler on the
> FocusPanel to handle the drop (and do whatever you want with the wrapped
> AbsolutePanel)?
>
> Note that GWT's support for DnD is via the native browser API/events, so
> you transport "data", not "widgets", so what would a panel do with that?
> Seehttp://dev.w3.org/html5/spec/dnd.html#the-drag-data-store
>
> If you want to drag and drop widgets, you can use gwt-dnd instead (much
> lighter weight than SmartGWT)

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