Question

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.

Was it helpful?

Solution 2

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.

  1. I moved the FlexTable into a AbsolutePanel to manipulate the dragged objects from the FlexTable cells
  2. I used java events, mouse events and handlers
  3. I used FocusPanel to map the events to
  4. Manipulated the FlexTable in a lot of sections of event handling in dragging and dropping objects

OTHER TIPS

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top