문제

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

도움이 되었습니까?

해결책

You can use removeFromParent() method.

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

다른 팁

Isn't there a .remove() method?

hide()ing a PopupPanel, unlike for other widgets, detaches it from the document, allowing it to be garbage-collected. It's then only up to you to remove all references to it so it can effectively be garbage-collected (null your variables, etc.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top