Examples of removeFromParent()


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

    private String getThemeVersion() {
        Element div = DOM.createDiv();
        div.setClassName(THEME_VERSION_CLASSNAME);
        RootPanel.get().getElement().appendChild(div);
        String version = getComputedStyle(div, ":after", "content");
        div.removeFromParent();
        if (version != null) {
            // String version = new ComputedStyle(div).getProperty("content");
            version = version.replace("'", "");
            version = version.replace("\"", "");
        }
View Full Code Here

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

    Element div = Document.get().createDivElement();
    div.setInnerHTML(html);
    Element firstChild = div.getFirstChildElement();
    // support text node creation
    if (firstChild != null) {
      firstChild.removeFromParent();
    }
    return ((firstChild != null) ? firstChild : div).cast();
  }

  /**
 
View Full Code Here

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

  @Override
  protected void doPhysicalDetach(Widget child) {
    Element parentElement = child.getElement().getParentElement();
    if (parentElement != null) {
      parentElement.removeFromParent();
    }
    super.doPhysicalDetach(child);
  }

  @Override
View Full Code Here

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

  @Override
  protected void doPhysicalDetach(Widget child) {
    Element parentElement = child.getElement().getParentElement();
    if (parentElement != null) {
      parentElement.removeFromParent();
    }
    super.doPhysicalDetach(child);
  }

  @Override
View Full Code Here

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

    // schedule removal of clone from DOM once animation complete
    new ScheduleTimer() {
      @Override
      public void run() {
        clone.removeFromParent();
      }
    }.schedule(DEFAULT_REMOVE_MS);

    // fire popup event listeners
    for (PopupEventListener listener : listeners) {
View Full Code Here

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

    if (!NodeManager.hasBackReference(element)) {
      Node n;
      while ((n = element.getFirstChild()) != null) {
        element.getParentNode().insertBefore(n, element);
      }
      element.removeFromParent();
      return true;
    }
    return false;
  }
View Full Code Here

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

    Element div = com.google.gwt.dom.client.Document.get().createDivElement();
    div.setInnerHTML(html.toSafeHtml().asString());
    Element ret = div.getFirstChildElement();
    // Detach, in order that this element looks free-floating (required by some
    // preconditions).
    ret.removeFromParent();
    return ret;
  }
}
View Full Code Here

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

   */
  @Override
  public void onChildAdded(Node child, Element paragraph) {
    Element spacer = getSpacer(paragraph);
    if (spacer.hasParentElement()) {
      spacer.removeFromParent();
    }
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

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

      } else {
        return Point.inElement(parent, nextSibling);
      }
    } finally {
      if (elem != null) {
        elem.removeFromParent();
      }
    }
  }

  @SuppressWarnings("unused") // NOTE(user): may be used later
View Full Code Here

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

    setContainerNodelet(null); // clear any old container nodelet just in case
    setImplNodelets(renderer.createDomImpl(this), getContainerNodelet()); // reset both nodelets
    assert getImplNodelet() == null || NodeManager.getBackReference(getImplNodelet()) == this;

    if (oldNodelet != null) {
      oldNodelet.removeFromParent();
    } else {
    }
  }

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.