Search code examples
gwtpopuppanel

popupanel, method to destroy it, not hide it


I have a question about popupapnel with GWT. The method hide() only "hides" the popupanel ? I want to definitively destroy my popuppanel, allowing reseting all allocated resources to it. But if the method hide() only hides it, it don't arrange me. So is there a method to destroy a popuppanel et reset all resources allocated to it ?

Thanks you in advance


Solution

  • You can use removeFromParent() method.

    And if you want reset some resources you can also override onDetach() method.