Package com.google.gwt.dom.client

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


      bufferRender(list, sb);

      DomHelper.insertBefore(original, sb.toSafeHtml().asString());

      all.replaceElement(original, Element.as(original.getPreviousSibling()));
      original.removeFromParent();

    }
    sm.onRowUpdated(model);
  }
View Full Code Here


      assertEquals("javascript:void(0)", r.getInlineJavascriptAnchor(e).getHref());

      assertEquals(values.aSelector() + values.aGifPath(),
          r.getHttpAnchorFromConstructedString(e).getHref());
    } finally {
      e.removeFromParent();
    }
  }
}
View Full Code Here

        ret = getComputedStyle(elem, JsUtils.hyphenize(name), name, null);
      }

      // If the element was previously attached, detached it.
      if (toDetach != null) {
        toDetach.removeFromParent();
      }
    }

    return ret == null ? "" : ret;
  }
View Full Code Here

    String ret = elemdisplay.get(tagName);
    if (ret == null) {
      Element e = DOM.createElement(tagName);
      Document.get().getBody().appendChild(e);
      ret = curCSS(e, "display", false);
      e.removeFromParent();
      if (ret == null || ret.matches("(|none)")) {
        ret = "block";
      }
      elemdisplay.put(tagName, ret);
    }
View Full Code Here

      else {
        table.setRowSpan(row, i, table.getRowSpan(row, i) - 1);
        int col = Integer.parseInt(
          DOM.getElementAttribute(table.getFlexCellFormatter().getElement(row, i), "col"));
        Element td = table.getCellElement(row, i);
        td.removeFromParent();
        com.google.gwt.user.client.Element refNode = null;
        for(int j = 0, columnCount = table.getCellCount(i + 1); j < columnCount; j++) {
          if(Integer.parseInt(DOM.getElementAttribute(table.getFlexCellFormatter().getElement(row + 1, j), "col")) > col) {
            refNode = table.getFlexCellFormatter().getElement(row + 1, j);
            break;
View Full Code Here

        Element clone = DomUtil.clone(getElement());
        clone.getStyle().setPosition(Position.ABSOLUTE);
        RootPanel.getBodyElement().appendChild(clone);
        int result = clone.getOffsetWidth();
        clone.removeFromParent();
        return result;
    }

    /**
     * Returns the value of the select option as a string.<p>
View Full Code Here

    private void ensureInjected(final Language language) {
        if (!languageScripts.isEmpty()) {
            for (final JavaScriptObject script : languageScripts.values()) {
                try {
                    final Element ele = (Element) script;
                    ele.removeFromParent();
                } catch (final Exception e) {
                    // TODO: handle exception
                }
            }
        }
View Full Code Here

    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

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

  @SuppressWarnings("unused") // NOTE(user): may be used later
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

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.