Package com.google.gwt.dom.client

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


        // remove gwt extra divs and place shell nodes directly into the document body,
        // (and hope for the best about xbrowser compatibility..)
        shell.getElement().setId("shell");
        final Element shellElement = Document.get().getElementById("shell");
        shellElement.removeFromParent();
        Document.get().getElementById("rootPanel").removeFromParent();

        Element shellChildElement = shellElement.getFirstChildElement();
        while (shellChildElement != null) {
            shellChildElement.removeFromParent();
View Full Code Here


        shellElement.removeFromParent();
        Document.get().getElementById("rootPanel").removeFromParent();

        Element shellChildElement = shellElement.getFirstChildElement();
        while (shellChildElement != null) {
            shellChildElement.removeFromParent();
            Document.get().getBody().appendChild(shellChildElement);
            shellChildElement = shellElement.getFirstChildElement();
        }

    }
View Full Code Here

    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

    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

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

  @Override
View Full Code Here

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

  @Override
View Full Code Here

    // 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

    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

    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

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

  /**
   * {@inheritDoc}
 
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.