PDA

View Full Version : Beta 4: close() method removed from Window class



rmraya
9 Jun 2008, 5:17 AM
Hi,

The close() method was removed from Windows class in beta 4 and this broke my code. I need to close dialogs programatically, without waiting for the user to click on a button.

Hiding a window is not enough for me. I need to destroy all widgets and detach the window from its parent.

How can I close a dialog in beta 4?

Best regards,
Rodolfo

darrellmeyer
9 Jun 2008, 11:41 AM
You are no longer able to "destroy" components as it was deemed unnecessary with GWT development. However, hiding a window will cause it to be removed and detached from its parent panel (RootPanel).

rmraya
9 Jun 2008, 12:22 PM
Thanks Darrell.