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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Clickable label vs link and d&d
Hello!
First of all, thank you very much for Vaadin Framework. It is really, really great and saves a lot of time.
I have the following question:
I want to have a Label with ClickListener, so I put Label component into CssLayout and use LayoutClickListener. However, I have 2 problems:
1) Link. If the Label contains a link, and the user clicks on the link, I want him to be simply redirected and the event not to be called. If the user clicks on the other part of the Label (not containing link), event should normally be called.
2) If the user uses d&d and drops sth on the label I want the event not to be called (or know somehow that this situation took place).
How can I achieve this? Any solutions? Is using Label good here or should I use some other component?
Thanks!
Janek