parttio / dragdroplayouts

Drag and Drop for Vaadin layouts
7 stars 23 forks source link

Added DDSwapGridLayout, layout able to swap two occupied cells #68

Closed domessina closed 8 years ago

domessina commented 8 years ago

According to the demo of the add-on, DDGridLayout swap an occupied cell with an empty one. In opposite, this new DDSwapGridLayout swap an occupied cell with another occupied. See the screenshot of a working example in attachement of the first post https://vaadin.com/forum#!/thread/13820707 I added the DropHandler and DropEvent in the right packages. However I use a custom DragAndDropWrapper in the puporse of to retrieve a component of the GridLayout, see getUnWrappedComponent method from DDGridLayout, I don't no if it is a good idea or the user should do it himself.