Re: wicket-dnd and link multiple items at once
Hi, well that's an 'interesting' use case you have there. No, I'm afraid that would require some mayor tweaks in wicket-dnd's JavaScript. Have fun Sven Am 14. März 2018 07:08:50 MEZ schrieb Dirk Forchel : >Hi Sven, >Thank you fror your answer. I think you have misunderstood the "use >case" we >want to achieve. >We don't want to select several items and transfer them at once but >rather >select only one item (only one drag source) and drop that item (link >operation) to different drop targets. I think if the user releases the >mouse >button on the first drop target, the selection will be lost. However, >this >should only happen once the user releases the control key. I hope I >could >express myself more clearly. >Many thanks > >-- >Sent from: >http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > >- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-dnd and link multiple items at once
Hi Sven, Thank you fror your answer. I think you have misunderstood the "use case" we want to achieve. We don't want to select several items and transfer them at once but rather select only one item (only one drag source) and drop that item (link operation) to different drop targets. I think if the user releases the mouse button on the first drop target, the selection will be lost. However, this should only happen once the user releases the control key. I hope I could express myself more clearly. Many thanks -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-dnd and link multiple items at once
Hi Dirk, wicket-dev doesn't know anything about selection. You could do that by yourself, keeping track of clicked items while a control key is held. When the actual dragNdrop operation is performed, your DragSource can put all selected items into the Transfer and the DropTarget can retrieve the transferred items. This is a rough idea only as I haven't tried this actually. Have fun Sven Am 12. März 2018 13:18:12 MEZ schrieb Dirk Forchel : >Hello, >I've a question regarding the Wicket drag'n'drop library. We're using >this >library successfully in order to link items with other items (the only >operation allowed is a LINK operation) between to different panels (or >container). It works quite well and I'm a bit curious about the way how >to >support multiple "link" operations at once. Instead of clicking on an >item >on the left container and dragging this item to the right container and >releasing the mouse button, I'd like to hold an extra button to support >"multiple" item copy operations. >I could imagine that pressing the "ALT"-key and holding this key could >start >a link operation from the left container to the right as long as the >"ALT" >key gets pressed. Releasing the this key would stop the whole copy >operation. >I'm not sure whether this would be possible with the current release >(wicket-dnd 0.7.3). For any hint I would be very grateful. > >-- >Sent from: >http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > >- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org