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
精彩评论