Create custom listerner

How, can I create a custom listener to pass between classes?

tks

This question is far too broad. What type of Listener do you need? What should it do?

Tobias, I in a project that uses Designer, so I have many windows just like this:

public class NovaFichaImpl extends NovaFicha { // here I have my form } And when I click in one button in another view I need to open this class in a Window, so I have this:

public class AlterarFichaFirmasImpl extends AlterarFichaFirmas {

    Window window = null;

    public AlterarFichaFirmasImpl(Ficha ficha) {
        NovaFichaImpl alterarFicha = new NovaFichaImpl(ficha);
        alterarFicha.setWidth("100%");
        alterarFicha.setHeight("100%");
        alterarFicha.setListener(new Listener() {
            @Override
            public void componentEvent(Event event) {
                close();
            }
        });
        this.addComponent(alterarFicha);
        this.setExpandRatio(alterarFicha, 1);
    }

    public void close(){
        this.window.close();
    }
}

and I show the windows just like this:

Window window = new Window(titulo);
window.setContent(new AlterarFichaFirmasImpl(ficha));
UI.getCurrent().addWindow(window);

So… I want to pass listener to all embeded, because after close the last window, I need to update the parent.

OK, I have no experience with designer, so I cannot help here. Maybe somebody else knows the answer?

Hadoop Online Training and Hadoop Corporate Training services. We framed our syllabus to match with the real world requirements for both beginner level to advanced level.

[https://www.besanttechnologies.com/training-courses/data-warehousing-training/hadoop-training-institute-in-chennai]
(http://)