As you know after Framework 8.0 there is deprecated metod ‘removeClickListner()’ and it guides me to use .remove() of Registration.
But how to use on an example? I can’t figure it out.
I have this
public static Button.ClickListener exampleListener = new ClickListener() {
public void buttonClick(ClickEvent event) {
exampleButton.addClickListener(e -> ...);
}
};
exampleButton.remove();
Doesn’t work of course.