Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.Node.removeFromParent()


          } else {
            element = (Element)document.getElementsByTagName(localName.toUpperCase()).getItem(0);
            NodeList<Node> nodes = element.getChildNodes();
            for (int n = 0; n < nodes.getLength(); n++) {
              Node node = nodes.getItem(n);
              node.removeFromParent();
            }
          }
          currentNode = element;
          level++;
          return;
View Full Code Here


      if (nodelet == null || nodelet == nodeletAfter) {
        break;
      }

      if (nodelet.getParentElement() != null) {
        nodelet.removeFromParent();
      }
    }

    for (ContentNode node = first; node != last; node = renderedView.getNextSibling(node)) {
      parentNodelet.insertBefore(node.getImplNodelet(), nodeletAfter);
View Full Code Here

            new OffsetPosition(SPAN.getOffsetLeft(), SPAN.getOffsetTop(), SPAN.getOffsetParent());

        return ret;
      } finally {
        SPAN.removeFromParent();
        txt.removeFromParent();
        mutationListener.endTransientMutations();
      }
    } else {
      Element e = focusNode.cast();
      return new OffsetPosition(e.getOffsetLeft(), e.getOffsetTop(), e.getOffsetParent());
View Full Code Here

      return;
    }
    for (Node n = from; n != toExcl && n != null;) {
      Node r = n;
      n = n.getNextSibling();
      r.removeFromParent();
    }
  }

  /**
   * Remove all children from an element
View Full Code Here

      if (affectImpl) {
        Node nodelet = oldChild.normaliseImpl();
        if (nodelet != null) {
          // removeFromParent() checks if parent is null
          nodelet.removeFromParent();
        }
      }

      removedNodes.add(oldChild);
      oldChild.removeFromShadowTree();
View Full Code Here

    } else {
      if (oldContainerNodelet != null) {
        for (ContentNode node = from; node != toExcl; node = node.getNextSibling()) {
          Node nodelet = node.getImplNodelet();
          if (nodelet != null) {
            nodelet.removeFromParent();
          }
        }
      }
    }
  }
View Full Code Here

            new OffsetPosition(SPAN.getOffsetLeft(), SPAN.getOffsetTop(), SPAN.getOffsetParent());

        return ret;
      } finally {
        SPAN.removeFromParent();
        txt.removeFromParent();
        mutationListener.endTransientMutations();
      }
    } else {
      Element e = focusNode.cast();
      return new OffsetPosition(e.getOffsetLeft(), e.getOffsetTop(), e.getOffsetParent());
View Full Code Here

      if (nodelet == null || nodelet == nodeletAfter) {
        break;
      }

      if (nodelet.getParentElement() != null) {
        nodelet.removeFromParent();
      }
    }

    for (ContentNode node = first; node != last; node = renderedView.getNextSibling(node)) {
      parentNodelet.insertBefore(node.getImplNodelet(), nodeletAfter);
View Full Code Here

      if (affectImpl) {
        Node nodelet = oldChild.normaliseImpl();
        if (nodelet != null) {
          // removeFromParent() checks if parent is null
          nodelet.removeFromParent();
        }
      }

      removedNodes.add(oldChild);
      oldChild.removeFromShadowTree();
View Full Code Here

    } else {
      if (oldContainerNodelet != null) {
        for (ContentNode node = from; node != toExcl; node = node.getNextSibling()) {
          Node nodelet = node.getImplNodelet();
          if (nodelet != null) {
            nodelet.removeFromParent();
          }
        }
      }
    }
  }
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.