Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DnD duplicate element

meme kharousi
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all...
am trying to perform drag and drop from list of components -as icons - but they are moving not copying ,however, i used .ACTION_COPY
but it has no sense!
the sources are located in a separate class then the distination .i.e.coponents to be draged are in a class called componentslibrary and the distination class is called editor.
in source class :
DragDrop dndListener = new DragDrop();
DragSource dragSource = neDropTarget dropTarget1 = new DropTarget(this, DnDConstants.ACTION_COPY, dndListener);
//for each of the 6 components dragrecognizer were identified in order to be dragable otherwise can not be draged with .ACTION_COPY.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic