On a drop handler, I’ve stored the dropped custom component in a drag and drop wrapper. The custom component actually consists of 3 other components. I’m trying to access the custom component but the data type is of the DragAndDropWrapper, how do i access the custom component inside the wrapper?
On the drophandler:
WrapperTransferable t = (WrapperTransferable) event.getTransferable();
WrapperTargetDetails details = (WrapperTargetDetails) event.getTargetDetails();
pictureTable.addComponent(t.getSourceComponent());
//pictureTable.addComponent(t.getDraggedComponent())
on the source:
DragAndDropWrapper pw = new DragAndDropWrapper(currPic);
pw.setDragStartMode(DragStartMode.WRAPPER);
pw.setSizeUndefined();