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.

reference to addListener is ambiguous

Marco Zanon
10 years ago Apr 01, 2012 5:16pm
Henri Kerola
10 years ago Apr 01, 2012 5:58pm

Sure, you just have to cast to tell which addListener you want to call:

button.addListener((Button.ClickListener) this);
Last updated on Apr, 1st 2012
Marco Zanon
10 years ago Apr 01, 2012 6:15pm
Bobby Bissett
9 years ago Apr 19, 2012 4:30pm
Marco Zanon
9 years ago Apr 24, 2012 12:53pm