Loading...
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
TUTORIAL

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

How to add clickevent listener to DragAndDropWrapper

Cristian Martin
9 years 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) {
System.out.println("CustomComponent");

}
});
layoutWrapper.addListener(new ComponentContainer.ComponentDetachListener() {

public void componentDetachedFromContainer(ComponentDetachEvent event) {
System.out.println("ComponentContainer");

}
});
layoutWrapper.addListener(new ComponentContainer.ComponentAttachListener() {

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

}
});
Thanks!

Last updated on Jun, 19th 2012