Examples of removeChild()


Examples of org.odftoolkit.odfdom.dom.element.text.TextAElement.removeChild()

    while (aElement != null) {
      Node node = aElement.getFirstChild();
      while (node != null) {
        Node thisNode = node;
        node = node.getNextSibling();
        aElement.removeChild(thisNode);
        parent.insertBefore(thisNode, aElement);
      }
      TextAElement thisElement = aElement;
      aElement = OdfElement.findNextChildNode(TextAElement.class, aElement);
      parent.removeChild(thisElement);
View Full Code Here

Examples of org.odftoolkit.odfdom.incubator.doc.office.OdfOfficeAutomaticStyles.removeChild()

            }
          }
        }
      }
      for (int i = 0; i < removeStyles.size(); i++) {
        autoStyles.removeChild(removeStyles.get(i));
      }
    } catch (Exception e) {
      Logger.getLogger(Document.class.getName()).log(Level.SEVERE, null, e);
      success = false;
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.incubator.doc.style.OdfStyle.removeChild()

      OdfStyle element = paragraphContainer.getStyleHandler()
          .getStyleElementForWrite();
      NodeList nodes = element.getChildNodes();
      int size = nodes.getLength();
      for (int i = 0; i < size; i++) {
        element.removeChild(nodes.item(0));
      }
    }
    ParagraphProperties properties = paragraphContainer.getStyleHandler()
        .getParagraphPropertiesForWrite();
    return properties;
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.OdfElement.removeChild()

  public boolean remove() {
    OdfElement containerElement = (OdfElement) mElement.getParentNode();
    try {
      mElement.removeChild(getOdfElement());
      if (mElement.hasChildNodes() == false)
        containerElement.removeChild(mElement);
      mOwnerDocument.removeElementLinkedResource(getOdfElement());
    } catch (DOMException exception) {
      Logger.getLogger(AbstractParagraphContainer.class.getName()).log(Level.WARNING, exception.getMessage());
      return false;
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.manifest.EncryptionDataElement.removeChild()

      }
      encryptionDataElement = fileEntryElement.newEncryptionDataElement(checksum, "SHA1/1K");
      String initialisationVector = new Base64Binary(iv).toString();
      AlgorithmElement algorithmElement = OdfElement.findFirstChildNode(AlgorithmElement.class, encryptionDataElement);
      if (algorithmElement != null) {
        encryptionDataElement.removeChild(algorithmElement);
      }
      algorithmElement = encryptionDataElement.newAlgorithmElement("Blowfish CFB", initialisationVector);
      String saltStr = new Base64Binary(salt).toString();
      KeyDerivationElement keyDerivationElement = OdfElement.findFirstChildNode(KeyDerivationElement.class, encryptionDataElement);
      if (keyDerivationElement != null) {
View Full Code Here

Examples of org.odftoolkit.odfdom.pkg.manifest.FileEntryElement.removeChild()

        if (fileEntry != null) {
          fileEntry.setSize(null);
          FileEntryElement fileEntryEle = fileEntry.getOdfElement();
          EncryptionDataElement encryptionDataElement = OdfElement.findFirstChildNode(EncryptionDataElement.class, fileEntryEle);
          while (encryptionDataElement != null) {
            fileEntryEle.removeChild(encryptionDataElement);
            encryptionDataElement = OdfElement.findFirstChildNode(EncryptionDataElement.class, fileEntryEle);
          }
        }
        ze.setCompressedSize(-1);
      }
View Full Code Here

Examples of org.projectforge.gantt.GanttTask.removeChild()

                return;
              }
              final GanttTaskImpl root = (GanttTaskImpl) ganttChartData.getRootObject();
              final GanttTask parent = root.findParent(clipboard.getId());
              final TaskDO task = taskDao.getTaskTree().getTaskById((Integer) clipboard.getId());
              parent.removeChild(clipboard);
              if (clipboard == ganttObject) {
                // Move to top level:
                root.addChild(ganttObject);
                final TaskDO rootTask = form.getData().getTask();
                if (rootTask != null && task != null) {
View Full Code Here

Examples of org.python.pydev.navigator.elements.PythonSourceFolder.removeChild()

        } else {
            if (removeFoundResource) {
                if (f == sourceFolder) {
                    sourceFolders.remove(f);
                } else {
                    sourceFolder.removeChild(object);
                }
            }
        }
        return f;
    }
View Full Code Here

Examples of org.rssowl.core.persist.IFolder.removeChild()

  }

  private void removeFromParentFolderAndCascade(IFolder folder) {
    IFolder parentFolder = folder.getParent();
    if (parentFolder != null) {
      parentFolder.removeChild(folder);
      fDb.set(parentFolder);
    }
    for (IFolder child : ReverseIterator.createInstance(folder.getFolders())) {
      cascadeFolderDeletion(child);
    }
View Full Code Here

Examples of org.rstudio.core.client.dom.ElementEx.removeChild()

      int w = 0;
      int h = span.getOffsetHeight() ;
      Rectangle result = new Rectangle(x, y, w, h) ;

      ElementEx parent = (ElementEx)span.getParentElement() ;
      parent.removeChild(span) ;
      parent.normalize() ;
      sel.setRange(selRng);
      return result;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.