Need to add HTML5 desktop to browser DnD support in GWT application

83 views
Skip to first unread message

dhoffer

unread,
Feb 21, 2014, 11:04:38 AM2/21/14
to google-we...@googlegroups.com
I need to have a widget that accepts DnD files from the desktop, how can I do this in a GWT 2.5.1 application? See the link below for the JS code to do this. Does GWT already have a widget for this? If not how could I create my own? 

From the link below I understand it all starts with a div in the rendered HTML and then wires in support for DnD with the JS code shown in the link. So in my case I'm starting with a GWT layout and need to add this 'widget' to that existing layout. I've never created my own GWT widget before, would I start with an existing GWT widget and then add the JS via JSNI? If so, what would be the best starting widget to build on?

http://www.htmlgoodies.com/html5/jav...id=TdDQb7R8c9d


Nicolas Weeger

unread,
Feb 24, 2014, 2:24:23 PM2/24/14
to google-we...@googlegroups.com
Hello.


I didn't have yet the occasion to play with it and it's one year old,
but GWT Uploader on http://www.moxiegroup.com/moxieapps/gwt-uploader/
seems to do the kind of things you require.


Hope this helps


Regards


Nicolas
> http://www.htmlgoodies.com/html5/jav...id=TdDQb7R8c9d [1]
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to google-web-tool...@googlegroups.com.
> To post to this group, send email to
> google-we...@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit
> [2].
> For more options, visit https://groups.google.com/groups/opt_out [3].
>
>
> Links:
> ------
> [1]
> http://www.htmlgoodies.com/html5/javascript/drag-files-into-the-browser-from-the-desktop-HTML5.html#fbid=TdDQb7R8c9d
> [2] http://groups.google.com/group/google-web-toolkit
> [3] https://groups.google.com/groups/opt_out

David Hoffer

unread,
Mar 11, 2014, 1:34:23 PM3/11/14
to Google Web Toolkit
Nicolas,

Thanks much for the link to this component.  I had found a couple similar ones but found this one to be the best, it really works great.  Thanks again for the link.

-Dave

P.S. I would think that GWT ought to have this as a core feature.


On Mon, Feb 24, 2014 at 12:24 PM, Nicolas Weeger <nic...@nekoko.fr> wrote:
Hello.


I didn't have yet the occasion to play with it and it's one year old, but GWT Uploader on http://www.moxiegroup.com/moxieapps/gwt-uploader/ seems to do the kind of things you require.


Hope this helps


Regards


Nicolas



Le 2014-02-21 17:04, dhoffer a écrit :
I need to have a widget that accepts DnD files from the desktop, how
can I do this in a GWT 2.5.1 application? See the link below for the
JS code to do this. Does GWT already have a widget for this? If not
how could I create my own?

From the link below I understand it all starts with a div in the
rendered HTML and then wires in support for DnD with the JS code shown
in the link. So in my case I'm starting with a GWT layout and need to
add this 'widget' to that existing layout. I've never created my own
GWT widget before, would I start with an existing GWT widget and then
add the JS via JSNI? If so, what would be the best starting widget to
build on?

http://www.htmlgoodies.com/html5/jav...id=TdDQb7R8c9d [1]

 --
 You received this message because you are subscribed to the Google

Groups "Google Web Toolkit" group.
 To unsubscribe from this group and stop receiving emails from it,

 To post to this group, send email to

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/DPk4mMgJVFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages