Examples of cloneNode()


Examples of org.aperteworkflow.bpm.graph.StateNode.cloneNode()

            }
                     
                     
          }
                    if (sn == null) continue;
                    sn = sn.cloneNode();
                    sn.setUnfinished(activity.getEndTime() == null);
                    sn.setLabel(activityName + ": " + hpi.getDuration() + "ms");
                    res.add(sn);
                    //look for transition
                    TransitionArc ta = (TransitionArc) processGraphElements.get(activityName + "_" + activity.getTransitionName());
View Full Code Here

Examples of org.aperteworkflow.bpm.graph.TransitionArc.cloneNode()

                   
           
                   
                 
                   
                    res.add(ta.cloneNode());
                } else {
                    loger.severe("Unsupported entry: " + hpi);
                }
            }
           
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.OdfStyleBase.cloneNode()

    String name = styleElement.getAttribute("style:name");
    String newName = null;
    OdfElement modifiedStyleElement = search
        .getModifiedStyleElement(styleElement);
    if (modifiedStyleElement == null) {
      modifiedStyleElement = (OdfElement) styleElement.cloneNode(true);
      search.addModifiedStyleElement(styleElement, modifiedStyleElement);
      NodeList paragraphProperties = modifiedStyleElement
          .getElementsByTagName("style:paragraph-properties");
      if (paragraphProperties != null
          && paragraphProperties.getLength() > 0) {
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElementBase.cloneNode()

                j += coverCellEle.getTableNumberColumnsRepeatedAttribute();
              }
            }
            // find the cover cell, now start cell clone.
            if (coverCellEle instanceof TableTableCellElement) {
              TableTableCellElement newCellEle = (TableTableCellElement) (coverCellEle.cloneNode(true));
              cleanCell(newCellEle);
              newCellEle.removeAttributeNS(tableNameSpace, "number-rows-spanned");
              newRow.appendChild(newCellEle);
              // deal with the following covered cell, spread
              // sheet need change these covered cell to cell.
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableColumnElement.cloneNode()

          .getOwnerDocument(), OdfName.newName(OdfDocumentNamespace.TABLE, "table-column"));
      newColumn.setStyleName(columnStylename);
      mTableElement.insertBefore(newColumn, positonElement);
    } else { // has column, append a same column as the last one.
      TableTableColumnElement refColumn = columnList.get(columnList.size() - 1).getOdfElement();
      newColumn = (TableTableColumnElement) refColumn.cloneNode(true);
      String tableNameSpace = OdfDocumentNamespace.TABLE.getUri();
      newColumn.removeAttributeNS(tableNameSpace, "number-columns-repeated");
      mTableElement.insertBefore(newColumn, positonElement);
    }
View Full Code Here

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

      OdfStyle newStyle = styles.newStyle(OdfStyleFamily.Paragraph);
      OdfStyle style = styles.getStyle(stylename, OdfStyleFamily.Paragraph);
      if (style != null) {
        String styleName = newStyle.getStyleNameAttribute();
        styles.removeChild(newStyle);
        newStyle = (OdfStyle) style.cloneNode(true);
        newStyle.setStyleNameAttribute(styleName);
        styles.appendChild(newStyle);
      }
      if (isVisible) {
        if (newStyle.hasProperty(StyleTextPropertiesElement.Display)) {
View Full Code Here

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

      OdfStyle newStyle = styles.newStyle(OdfStyleFamily.Paragraph);
      OdfStyle style = styles.getStyle(stylename, OdfStyleFamily.Paragraph);
      if (style != null) {
        String styleName = newStyle.getStyleNameAttribute();
        styles.removeChild(newStyle);
        newStyle = (OdfStyle) style.cloneNode(true);
        newStyle.setStyleNameAttribute(styleName);
        styles.appendChild(newStyle);
      }
      if (isVisible) {
        if (newStyle.hasProperty(StyleTextPropertiesElement.Display)) {
View Full Code Here

Examples of org.odftoolkit.odfdom.incubator.doc.style.OdfStylePageLayout.cloneNode()

      int autoStylesCount = autoStyles.getLength();     
      OdfStylePageLayout pageLayout = autoStyles.getPageLayout(stylePageLayoutName);
      if(pageLayout != null) {
        // Clone the OdfStylePageLayout if another master style possesses the same name before modifying its properties
        if(pageLayoutNameCount > 1){
          Node pageLayoutNew = pageLayout.cloneNode(true);         
          // Rename the style of the clone before modifying its properties
          String oldPageLayoutName = pageLayout.getStyleNameAttribute();
          pageLayout.setStyleNameAttribute("Mpm" + (autoStylesCount+1));
          // Allocate the new name of the style to the master style (the cloned style)
          if (list.getLength() > 0) {
View Full Code Here

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

  // and keep the original style of this selection
  private OdfTextSpan getSpan(OdfFileDom ownerDoc) {
    OdfElement parentElement = getContainerElement();

    if (parentElement != null) {
      Node copyParentNode = parentElement.cloneNode(true);
      if (ownerDoc != parentElement.getOwnerDocument()) {
        copyParentNode = ownerDoc.adoptNode(copyParentNode);
      }
      OdfTextSpan textSpan = new OdfTextSpan(ownerDoc);
      int sIndex = mIndexInContainer;
View Full Code Here

Examples of org.openide.nodes.Node.cloneNode()

            Node baseNode = fileObject != null
                    ? fileObject.getNodeDelegate()
                    : Node.EMPTY;

            // TODO: Update the created node if the underlying project is reloaded.
            return new FilterNode(baseNode.cloneNode()) {
                @Override
                public Image getIcon(int type) {
                    return NbIcons.getGradleIcon();
                }
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.