Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Close windows

    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:

    Code:
    addCloseClickHandler( new CloseClickHandler()
            {
                @Override
                public void onCloseClick( CloseClickEvent event )
                {
                    markForDestroy();
                }
    
            } );
    But why is the default approach to hide() the window and not to destroy() it ?

    #2
    How come there is not a setDestroyOnClose on Window like there is on Portlet?
    Thanks

    Comment


      #3
      It is just a less frequently used setting in that context, and very easily done with code.

      Comment


        #4
        Thanks, just wanted to make sure it wasn't hiding under another name.

        Comment

        Working...
        X