简体   繁体   English

如何在GWT中实现拖放

[英]how to implement Drag and Drop in GWT

I'm looking in this tutorial GWT DND 我在看本教程中的GWT DND

I want this Demo 5 to implement in my project, but I am confused as to how to implement it, as there are different classes for the source code: 我希望这个Demo 5在我的项目中实现,但是我对如何实现它感到困惑,因为源代码有不同的类:

Source code: InsertPanelExample.java, VerticalPanelDropController.java, VerticalPanelWithSpacer.java, HorizontalPanelDropController.java, PickupDragController.java) 源代码:InsertPanelExample.java,VerticalPanelDropController.java,VerticalPanelWithSpacer.java,Horizo​​ntalPanelDropController.java,PickupDragController.java)

Do we need to take all these around 5 source codes to implement this functionality, and how do we merge these different codes? 我们是否需要采用所有这5个源代码来实现此功能,以及如何合并这些不同的代码?

The source code of the demo can be found here 演示的源代码可以在这里找到
But if i were you I would write my own library elevating from it. 但是如果我是你,我会写一个自己的图书馆。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM