Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: gwt-dnd - Vertical (VerticalPanelDropController) and Tab (TabSelectingDropController) use

116 views
Skip to first unread message

David Torralbo

unread,
Nov 19, 2012, 5:51:57 PM11/19/12
to google-we...@googlegroups.com
 Hi, 

 Finally I found a solution for both problems fighting with the code and the panel distribution. I leave the solutions just in case:

  • For problem #1: I can leave any Horizontal Panel over the headers and they are not re-placed automatically into any tab or vertical list:
    • Here the problem was that following some examples, I configured the whole windows as droppable using the object 'AbsolutePositionDropController'. It was not needed because I already used 'VerticalPanelDropController' for the area where I wanted to leave each row.

  • For problem #2:  I can not place there any other Horizontal Panel coming from other tab because the container Vertical Panel is empty
    • In this case, I had to customize the class TabSelectingDropController.java. Now, at onDrop(), I explore the TabPanel and I leave the row in the proper widget, that was not done in the original implementation of the class, it required a absolute panel to leave the draggable widget and it didn't fit with my requirement.


 Cheers.
 David Torralbo

El lunes, 12 de noviembre de 2012 16:11:47 UTC-5, David Torralbo escribió:
 Hi,

 This is not reporting of an issue, but looking for advise to fine tuning my app.

 I am using gwt-dnd lib to create a List of Horizontal Panels that should be draggable in vertical way and also draggable from one tab to an other within a Tab Panel. You can see an example here:



 I got two problems that I'd like to fine tuning in any manner:

 1 - Because of the Header of each table (that is not draggable so it is places in a different Vertical Panel), I can leave any Horizontal Panel over the headers and they are not re-placed automatically into any tab or vertical list. The idea is not to allow to place in other place than in any table of each Tab.

 2 - If there is not any Horizontal Draggable Panel yet in one of the tabs, I can not place there any other Horizontal Panel coming from other tab because the container Vertical Panel is empty, even if it was initialized and registered as Drop controller.


 Any tip is more than welcome.


 Cheers.
 David Torralbo

David Torralbo

unread,
Nov 19, 2012, 5:53:56 PM11/19/12
to google-we...@googlegroups.com
 And the final result:



 Cheers.
 David Torralbo

Joseph Lust

unread,
Nov 30, 2012, 10:56:09 AM11/30/12
to google-we...@googlegroups.com
David,

You might want to make the default on those pages for the user-select css property to none so that people don't highlight random bits of the page while tying to drag and drop around. Nice work.


Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages