DragAndDropWrapper and CustomComponenet in Table

I have the following code segment, where “incomingStreamTable” is a table.
As you can see the customer component is used to reneder a “Generate Column” – the only column.

One thing happens that I did not expect. Each individual sub-component in the customComponent drags themselves, eg. image or labels. The whole component will drag if I click on the margin.

Any way to fix both of this problem?


    incomingStreamTable.addGeneratedColumn("Articles", new ColumnGenerator() {
            private static final long serialVersionUID = 1L;

            public Object generateCell(Table source, Object itemId, Object columnId) {
                // TODO Auto-generated method stub
                BeanItem<SourceItem> myItem = (BeanItem<SourceItem>) source.getItem(itemId);
                ArticleRenderer itemRenderer = new ArticleRenderer(myItem, articlesListener);
                final DragAndDropWrapper itemRendererWrap = new DragAndDropWrapper(itemRenderer);
                return itemRendererWrap;

Solved this.

Changed to line 13 to:


Figured out researching another issue.