Get the Wrapped Component in a DragAndDropComponent

Hello,

i’m using DragAndDrop feature in my web application and i’m getting some problems.
in fact this is how i work:

i have an Entry Class which extends HorizontalLayout and i use it in my widget (UI) by creating a DragAndDropWrapper.

DragAndDropWrapper entryWrapper = new DragAndDropWrapper(new Entry(…));

is there a method to get The Component wrapped (entryWrapper) in a DragAndDropWrapper. i have tried all the given method and dosen’t work.

Any ideas!!!

Best regards,
jazia

DnDWrapper extends the CustomComponent class, so getCompositionRoot is the method that should do it. But IIRC, that method is protected, so you’ll need to extend DndWrapepr yourself in order to access it.