Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to add clickevent listener to DragAndDropWrapper

Cristian Martin
1 decade ago Jun 19, 2012 12:10pm

Hi! I have a DragAndDropWrapper with a DropHandler but need a ListenerClickEvent also....How could I? I tried putting several Listener but none are detected ...

I tried the following and have not worked:

DragAndDropWrapper layoutWrapper=new DragAndDropWrapper();

layoutWrapper.addListener(new CustomComponent.Listener() {

public void componentEvent(Event event) {

layoutWrapper.addListener(new ComponentContainer.ComponentDetachListener() {

public void componentDetachedFromContainer(ComponentDetachEvent event) {

layoutWrapper.addListener(new ComponentContainer.ComponentAttachListener() {

public void componentAttachedToContainer(ComponentAttachEvent event) {
System.out.println("Attach Listener");


Last updated on Jun, 19th 2012