Right now in order to remove the ComboBox
element from the FormLayout
I use the following method:
formLayout.getElement().removeChild(locationComboBox.getElement());
I still have a validation binder associated with locationComboBox
. I may remove binding in the following way:
binder.removeBinding(locationComboBox);
that's works fine. But I'm thinking about the locationComboBox
? Is it enough to just remove the component via removeChild
method, or I should call some additional logic in order to completely destroy the locationComboBox
element and remove it from the memory? Or this is a task for JVM GC?