Examples of removeChildren()


Examples of com.sencha.gxt.core.client.dom.XElement.removeChildren()

    super.onAfterFirstAttach();
  }

  protected void refresh() {
    XElement tbody = table.getFirstChildElement().getNextSiblingElement().<XElement> cast();
    tbody.removeChildren();
    DomHelper.append(tbody, renderRows().asString());
  }

  protected <N, O> SafeHtml getRenderedValue(int row, int col) {
    AggregationRowConfig<M> config = cm.getAggregationRow(row);
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.removeChildren()

  @Override
  public void onUpdateIcon(XElement parent, ImageResource icon) {
    XElement iconWrap = parent.selectNode("." + style.statusIcon());
    iconWrap.setVisible(icon != null);
    if (icon != null) {
      iconWrap.removeChildren();
      iconWrap.appendChild(IconHelper.getElement(icon));
    }
  }
}
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.removeChildren()

  }

  @Override
  public void setIcon(XElement parent, ImageResource icon) {
    XElement iconWrap = parent.getFirstChildElement().cast();
    iconWrap.removeChildren();
    if (icon != null) {
      iconWrap.appendChild(IconHelper.getElement(icon));
    }
    parent.setClassName(style.headerHasIcon(), icon != null);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement.removeChildren()

    super.onAfterFirstAttach();
  }

  protected void refresh() {
    XElement tbody = table.getFirstChildElement().getNextSiblingElement().<XElement> cast();
    tbody.removeChildren();
    DomHelper.append(tbody, renderRows().asString());
  }

  protected <N, O> SafeHtml getRenderedValue(int row, int col) {
    AggregationRowConfig<M> config = cm.getAggregationRow(row);
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.palo.XElementNode.removeChildren()

        paths.append(",");
      }
      targetHierarchyTree.traverse(new FastMSTreeItemVisitor() {
        public boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {
          XElementNode elNode = getElementNodeCopyFrom(item);
          elNode.removeChildren();
          item.setElementNode(elNode);
          XElementNode xParent = getParent(parent); //parents.get(parent);
          if(xParent == null)
            roots.add(elNode);
          else {
View Full Code Here

Examples of com.volantis.mcs.dom.Element.removeChildren()

        if (!"root".equals(root.getName())) {
            throw new IllegalStateException("Root element name mismatch, " +
                    "expected 'root', actual '" + root.getName() + "'");
        }

        return root.removeChildren();
    }

    /**
     * Given a Mariner DOM object hierarchy, this method creates and returns
     * an XML string equivalent to the hierarchy content.
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.removeChildren()

        vc.cancelEdit();
        DcObject dco = vc.getItemAt(idx);
        
        if (dco != null) {
            if (isParent() && getType() == View._TYPE_INSERT) {
                dco.removeChildren();
                dco.setChildren(((CachedChildView) childView).getChildren(dco.getID()));
            }
        }       
       
        return dco;
View Full Code Here

Examples of nu.xom.Element.removeChildren()

      node = root; // replace root element's content
    }

    if (node instanceof Element) {
      Element elem = (Element) node;
      elem.removeChildren();
      elem.appendChild(value);
    } else if (node instanceof Attribute) {
      ((Attribute) node).setValue(value);
    } else if (node instanceof Text) {
      ((Text) node).setValue(value);
View Full Code Here

Examples of nu.xom.Element.removeChildren()

      rows.get(0).appendChild(new Element(columnName));
      cols = rows.get(0).getChildElements(columnName);
    }
   
    Element col = cols.get(0);
    col.removeChildren();
    col.appendChild(value);
  }
 
  public String get(String rowName, String columnName) {
    Elements rows = doc.getRootElement().getChildElements(rowName);
View Full Code Here

Examples of nu.xom.Element.removeChildren()

 
        assertEquals(parent, child3.getParent());
        assertEquals(parent, child1.getParent());
        assertEquals(parent, child2.getParent());
      
        Nodes result = parent.removeChildren();
        assertEquals(0, parent.getChildCount());
        assertNull(child1.getParent());
        assertNull(child2.getParent());
        assertNull(child3.getParent());
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.