コード例 #1
0
 /**
  * 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());
   }
 }
コード例 #2
0
 public void tagRemoved(XMLTagEvent e) {
   fireTagRemoved(e.getPath());
 }
コード例 #3
0
 /**
  * Removes all children from the tag.
  *
  * @param UnwantedChild The child to be removed.
  */
 public void removeAllChildren() {
   ChildTags.clear();
   fireTagRemoved(new XMLPath());
   ChildrenCount = 0;
 }