What is the recommended way to close windows?
As far as I know, the default action on window close is hide(). So the window is still in memory.
I (normally) prefer to destroy() the window, so I would have to write for every window I open:
But why is the default approach to hide() the window and not to destroy() it ?
As far as I know, the default action on window close is hide(). So the window is still in memory.
I (normally) prefer to destroy() the window, so I would have to write for every window I open:
Code:
addCloseClickHandler( new CloseClickHandler() { @Override public void onCloseClick( CloseClickEvent event ) { markForDestroy(); } } );
Comment