/** * Removes UnwantedChild from the child tags. * * @param UnwantedChild The child to be removed. */ public void removeChild(XMLTag UnwantedChild) { if (ChildTags.contains(UnwantedChild)) { ChildTags.remove(ChildTags.indexOf(UnwantedChild)); if (UnwantedChild.getParentTag() == this) { UnwantedChild.setParent(null); } else { UnwantedChild.removeXMLTagListener(this); } ChildrenCount--; fireTagRemoved(new XMLPath()); } }
public void tagRemoved(XMLTagEvent e) { fireTagRemoved(e.getPath()); }
/** * Removes all children from the tag. * * @param UnwantedChild The child to be removed. */ public void removeAllChildren() { ChildTags.clear(); fireTagRemoved(new XMLPath()); ChildrenCount = 0; }