cancel
Showing results for 
Search instead for 
Did you mean: 

Destroy or Remove

Former Member
0 Kudos

What is the difference between Destroy and remove:

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

container.destroyAllChildren();

...

container.removeAllChildren();

Thank you

Joseph

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (1)

Answers (1)

Former Member
0 Kudos

"remove" removes the elements from the Container, but Destroy deletes the instance of the elements.

After removing, u can even add the same elements without creating a new one.But after destroying, this is impossible.