[SOLVED] Vaddin AddessbookApplication Tutorial 5.6

when I implement the following part of the tutorial

public class SearchView extends Panel implements  Button.ClickListener{
      private CheckBox saveSearch;
      public SearchView(final AddressbookApplication app)  {
                saveSearch.addListener(new ClickListener() {
                         public void buttonClick(ClickEvent event) {


I get this error:
The type SearchView must implement the inherited abstract method Button.ClickListener.buttonClick(Button

What Am I missing ?

see: https://vaadin.com/tutorial/-/chapter/interaction.search.html

You have two listeners there - the one your panel is implementing, and the one you add to the checkbox. Remove the implemented one and it should work, or add another buttonClick()-method for the panel’s use.

Hello Anna,

ahh ok its a bit tricky , since eclipse does not suggested com.vaadin.ui.Button.ClickListener but the gwt event I thought it is not available.

Its now working !!!

Thank you very much for you help and time !


No problem :slight_smile: And I’ve noticed that too, eclipse doesn’t always quite keep up with clicklisteners. I guess it’s just one of those things you have to look out for.