Reputation: 8230
I'm working on a drag'n'drop functionality in a GWT project and I need to do widgets drag'n'droping onto a FlexTable
.
I saw some examples on DnD within AbsolutePanel
... etc, and I did researches on it, but I didn't find any information on the above mentioned problem.
Any help will be appriciated.
Upvotes: 3
Views: 1567
Reputation: 8230
In a matter of fact I finished coding, and it works super. It took me one whole week! But not with GWTQuery
, I used only GWT
.
FlexTable
into a AbsolutePanel
to manipulate the
dragged objects from the FlexTable
cellsFocusPanel
to map the events toUpvotes: 1
Reputation: 8230
Working with DnD
in AbsolutePanel
is a thing and working with FlexTable
is another:
It is very difficult to maintain DnD
in FlexTable
since it has a lot of manipulation things to be done concerning rows and columns, on adding positioners, removing and adding widgets, is a lot of pain in the A**. but worth trying it.
Upvotes: 0
Reputation: 1104
Do you consider the drag and drop plugin of gwtquery ?
It offers the possibility to make any widget (the new cell widgets included) draggable and/or droppable easily and it is fully configurable.
Take a look a the doc : http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGWTDeveloppers
and at the examples : http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/GwtSimpleSample/GwtSimpleSample.html
Upvotes: 1