I’m new to vaadin and I’m looking for a way to remove all the child nodes. I tried
@Override
public void nodeCollapse(CollapseEvent event) {
Object o=event.getItemId();
Collection<?> col=tree.getChildren(o);
col.clear();
}
and received an UnsupportedOperationException.
I tried using an Iterator and removing one at a time and also received an error. I looked through the forums and couldn’t find the answer. Anyone have a solution to this?
Thanks in advance.