removeItem method
Implementation
bool removeItem(AbstractNode node, Object item) {
Boundable? childToRemove = null;
for (Iterator i = node.getChildBoundables().iterator; i.moveNext();) {
Boundable childBoundable = i.current as Boundable;
if (childBoundable is ItemBoundable) {
if ((childBoundable as ItemBoundable).getItem() == item)
childToRemove = childBoundable;
}
}
if (childToRemove != null) {
node.getChildBoundables().remove(childToRemove);
return true;
}
return false;
}