PDA

View Full Version : TreePanelDrop problem....



caoimhin
24 Jul 2009, 8:43 AM
Hi,
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() {
@Override
public void dragDrop(DNDEvent e) {
// TODO Auto-generated method stub
super.dragDrop(e);
}
});
I don't know how to get the target model from this event.
Can anyone help me? Thanks!