开发者

GXT Window AutoHide Listener

I am trying to trap the GXT Window hide event. Below is my code, but it does not work. The L开发者_如何转开发og 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!


If myGXTWindowObject is of type com.extjs.gxt.ui.client.widget.Window, it does not actually fire the Events.AutoHide event which you are Listening for, only Events.Hide. See the events section at the end of the docs: com.extjs.gxt.ui.client.widget.Window


I found the answer. Below is how I did:

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

Cheers

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜