Examples of removeChild()


Examples of org.mt4j.components.MTCanvas.removeChild()

   
//    /*
    //cursor tracer group NOT found in the scene -> add overlay container to canvas
    if (cursorTraceContainer == null){
      if (canvas.containsChild(overlayGroup)){
        canvas.removeChild(overlayGroup);
      }
    }
//    */
  }
 
 
View Full Code Here

Examples of org.mt4j.components.MTComponent.removeChild()

          {
            TapAndHoldVisualizer.this.app.invokeLater(new Runnable() {
              public void run(){
                MTComponent parent = e.getParent();
                if (parent != null){
                  parent.removeChild(e);
                  parent.addChild(e);
                }
              }
            });
          }
View Full Code Here

Examples of org.mt4j.components.clusters.Cluster.removeChild()

                    //Remove component from cluster it is in
                    Cluster clusterOfComponent = clusterMgr.getCluster(sourceComp);
                    if (clusterOfComponent != null){
                      ((IdragClusterable)sourceComp).setSelected(false);
                      //Remvove the component from its former selection
                      clusterOfComponent.removeChild(sourceComp);
                     
                      //System.out.println("Comp destroyed and removed from cluster: " + sourceComp.getName());
                     
                      //remove the former selection from the selectionmanager if it consists only of 1 less components
                      if (clusterOfComponent.getChildCount() <= 2){
View Full Code Here

Examples of org.nasutekds.server.config.ConfigEntry.removeChild()

      // At this point, we will assume that everything is OK and proceed with
      // the delete.
      try
      {
        parentEntry.removeChild(entryDN);
        configEntries.remove(entryDN);
        writeUpdatedConfig();
      }
      catch (ConfigException ce)
      {
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawFrameElement.removeChild()

   */
  public boolean removeTextbox(Textbox box) {
    OdfElement containerElement = getFrameContainerElement();
    DrawFrameElement drawFrame = box.getDrawFrameElement();
    try {
      drawFrame.removeChild(box.getOdfElement());
      if (drawFrame.hasChildNodes() == false)
        containerElement.removeChild(box.getDrawFrameElement());
    } catch (DOMException exception) {
      Logger.getLogger(AbstractParagraphContainer.class.getName()).log(Level.WARNING, exception.getMessage());
      return false;
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.removeChild()

    success &= deleteLinkRef(slideElement);
    //2.the reference of the style is 1, then remove it
    //in order to save time, do not delete the style here
    success &= deleteStyleRef(slideElement);
    //remove the current page element
    contentRoot.removeChild(slideElement);
    adjustNotePageNumber(index);
    return success;
  }

  private boolean deleteStyleRef(DrawPageElement slideEle) {
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficeSpreadsheetElement.removeChild()

    } catch (FileNotFoundException e) {
      //Create an empty spreadsheet
      timedoc = SpreadsheetDocument.newSpreadsheetDocument();
      OfficeSpreadsheetElement spreadsheet = (OfficeSpreadsheetElement) timedoc.getContentDom().getElementsByTagNameNS(
          OdfDocumentNamespace.OFFICE.getUri(), "spreadsheet").item(0);
      spreadsheet.removeChild(spreadsheet.getFirstChild());
    }

    try {
      memoryfile = new FileInputStream(memory_spreadsheet);
      memorydoc = Document.loadDocument(memoryfile);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableContentValidationElement.removeChild()

    try {
      TableContentValidationElement validationElement = getContentValidationEle();
      TableHelpMessageElement helpMessageElement = OdfElement.findFirstChildNode(TableHelpMessageElement.class,
          validationElement);
      if (helpMessageElement != null) {
        validationElement.removeChild(helpMessageElement);
      }
      helpMessageElement = validationElement.newTableHelpMessageElement();
      helpMessageElement.setTableTitleAttribute(title);
      helpMessageElement.setTableDisplayAttribute(true);
      helpMessageElement.newTextPElement().setTextContent(text);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableElement.removeChild()

      }

      if (ownerRowElement != null) {
        table.updateRowRepository(maRowElement, mnRepeatedIndex, ownerRowElement, 0);
      }
      tableEle.removeChild(oldRowElement);
      mRowsRepeatedNumber = -1;
    }
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableRowElement.removeChild()

              int num = (mnEndColumn - j + 1) - repeatedNum;
              if (num >= 0) {
                if(repeatedNum > 1){
                  coveredCell.setTableNumberColumnsRepeatedAttribute(repeatedNum);
                }
                parentRowEle.removeChild(cell);
              } else {
                int tableNumberColumnsRepeatedValue = mnEndColumn - j + 1;
                if(tableNumberColumnsRepeatedValue > 1){
                  coveredCell.setTableNumberColumnsRepeatedAttribute(tableNumberColumnsRepeatedValue);
                }
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.