cancel
Showing results for 
Search instead for 
Did you mean: 

Destroy or Remove

Former Member
0 Kudos
205

What is the difference between Destroy and remove:

IWDTransparentContainer container =(IWDTransparentContainer) view.getElement("RootUIElementContainer");

container.destroyAllChildren();

...

container.removeAllChildren();

Thank you

Joseph

View Entire Topic
Former Member
0 Kudos

"Destroy" completely kills UI control and clean-up it internal state. After destroy UI controls are unusable and subject of GC.

"Remove" simply take component off from its parent. You may add control afterwads to another parent (event the same one -- think about swaping controls sequence).

VS