View Full Version : TreePanelDrop problem....

24 Jul 2009, 8:43 AM
I am wondering if there is a way to get the drop target item?
In my case, all the items in the tree belong to the same model, which has the attribute "type" to distinguish them. Therefore, I need to get the drop target item when the user perform a DND. The following is my code:
final TreePanelDropTarget target = new TreePanelDropTarget(_tree);
target.addDNDListener(new DNDListener() {
public void dragDrop(DNDEvent e) {
// TODO Auto-generated method stub
I don't know how to get the target model from this event.
Can anyone help me? Thanks!