Examples of removeFromParent()


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

      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

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

      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

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

    } 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

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

            int count = group.getCount();
            if (childIndex < count) {
               
                // do the remove
                OptionElement element = group.getChildOption(childIndex);
                element.removeFromParent();
               
                group.decrement();
               
                // remove empty groups
                if (group.getCount() <= 0) {
View Full Code Here

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

    final String id = JSONP_HANDLER_PREFIX + jsonpCounter++;
    final ScriptElement requestMaker = Document.get().createScriptElement();
    registerCallback(id, new Callback<JavaScriptObject>() {
      @Override
      public void onSuccess(JavaScriptObject cajoled) {
        requestMaker.removeFromParent();
        deregisterCallback(id);
        request.onSuccess(cajoled.<R>cast());
      }

      @Override
View Full Code Here

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

    assertEquals(media.getElement(), source0.getParentElement());
    assertNull(source1.getParentElement());
    assertEquals(media.getElement(), source2.getParentElement());

    // Let a source remove itself.
    source2.removeFromParent();
    assertEquals(media.getElement(), source0.getParentElement());
    assertNull(source1.getParentElement());
    assertNull(source2.getParentElement());

    // Remove a source that is not a child.
View Full Code Here

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

    DivElement root = renderer.getRoot(docDiv);
    SpanElement nameSpan = renderer.getNameSpan(docDiv);

    // remove nameSpan
    nameSpan.removeFromParent();
    try {
      renderer.getNameSpan(docDiv);
      fail("Expected IllegalStateException because nameSpan was removed");
    } catch (IllegalStateException e) {
      // In dev mode this is different from not being attached
View Full Code Here

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

      assertEquals(t1, e.getBrokenNode());
      assertEquals(root.getImplNodelet(), e.getNode());
    }

    txt2.getParentNode().insertBefore(txt1, txt2);
    txt2.removeFromParent();

    try {
      t1.getImplData();
      fail("Did not throw HtmlMissing exception");
    } catch (HtmlMissing e) {
View Full Code Here

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

    Text n1 = t1.getImplNodelet(), n1b;

    n1b = n1.splitText(1);
    n1b.setData(s1);
    n1.removeFromParent();

    try {
      m.findTextWrapper(n1b, false);
      fail("Expected exception when not repairing");
    } catch (HtmlInserted e) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.Anchor.removeFromParent()

    Scheduler.get().scheduleDeferred(new ScheduledCommand() {

      @Override
      public void execute() {
        anchor.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.