Search code examples
gxt

GXT Window AutoHide Listener


I am trying to trap the GXT Window hide event. Below is my code, but it does not work. The Log statement never get called.

myGXTWindowObject.addListener(Events.AutoHide, new Listener<WindowEvent>()
{

    @Override
    public void handleEvent(WindowEvent arg0) {
        Log.info("handle Window AutoHide event");
    }

});

Thanks for help!


Solution

  • I found the answer. Below is how I did:

        this.addWindowListener(new WindowListener() {
            public void windowHide(WindowEvent we) {
                System.out.println("windowHide");
            }
        });
    

    Cheers