/** * Remove the specified {@link SourceElement} from this media. If the source * element is not a child of this widget, it will not be removed. * * @param source the source element to remove * @see #addSource(String, String) */ public void removeSource(SourceElement source) { getElement().removeChild(source); }
private void stopResizing() { isResizing = false; RootPanel.getBodyElement().removeChild(glassElem); } }
private void setCurrentFaceElement(Element newFaceElement) { if (curFaceElement != newFaceElement) { if (curFaceElement != null) { getElement().removeChild(curFaceElement); } curFaceElement = newFaceElement; DOM.appendChild(getElement(), curFaceElement); } }
@Override public boolean remove(Widget w) { // Validate. if (widget != w) { return false; } // Orphan. try { orphan(w); } finally { // Physical detach. getContainerElement().removeChild(w.getElement()); // Logical detach. widget = null; } return true; }
@Override public boolean remove(Widget w) { Element container = getContainer(w); boolean removed = super.remove(w); if (removed) { resetChildWidget(w); getElement().removeChild(container); if (visibleWidget == w) { visibleWidget = null; } } return removed; }
/** * Removes one of this item's children. * * @param item the item to be removed */ @Override public void removeItem(TreeItem item) { // Validate. if (children == null || !children.contains(item)) { return; } // Orphan. Tree oldTree = tree; item.setTree(null); // Physical detach. if (isRoot) { oldTree.getElement().removeChild(item.getElement()); } else { childSpanElem.removeChild(item.getElement()); } // Logical detach. item.setParentItem(null); children.remove(item); if (!isRoot && children.size() == 0) { updateState(false, false); } }
@Override public boolean remove(Widget w) { /* * Get the TR to be removed before calling super.remove() because * super.remove() will detach the child widget's element from its parent. */ Element td = DOM.getParent(w.getElement()); boolean removed = super.remove(w); if (removed) { getBody().removeChild(DOM.getParent(td)); } return removed; }
/** * Remove the specified widget from the table. * * @param widget widget to remove * @return was the widget removed from the table. */ @Override public boolean remove(Widget widget) { // Validate. if (widget.getParent() != this) { return false; } // Orphan. try { orphan(widget); } finally { // Physical detach. Element elem = widget.getElement(); DOM.getParent(elem).removeChild(elem); // Logical detach. widgetMap.removeByElement(elem); } return true; }
@Override public boolean remove(Widget w) { // Validate. if (w.getParent() != this) { return false; } // Orphan. try { orphan(w); } finally { // Physical detach. Element elem = w.getElement(); DOM.getParent(elem).removeChild(elem); // Logical detach. getChildren().remove(w); } return true; }
/** * Remove the specified {@link SourceElement} from this media. If the source * element is not a child of this widget, it will not be removed. * * @param source the source element to remove * @see #addSource(String, String) */ public void removeSource(SourceElement source) { getElement().removeChild(source); }
/** * Removes the value of the count element if any. It is safe to call this * method regardless of if a count has been set or not. */ public JQMListItem removeCount() { if (countElem != null) { getElement().removeChild(countElem); countElem = null; } return this; }
private void removeChild(Element elem) { if (anchor == null) getElement().removeChild(elem); else if (controlGroup != null) controlGroup.getElement().removeChild(elem); else anchor.removeChild(elem); }
/** * Removes all the elements children. */ public El removeChildren() { El child = null; while ((child = firstChild()) != null) { dom.removeChild(child.dom); } setInnerHtml(""); return this; }
private void removeToolBar(String name) { Element element = getToolBar(name); if (element != null) getElement().removeChild(element); }
@Override public boolean remove(IsWidget child) { int index = getIndex(child); if (index >= 0) { orphan(child.asWidget()); getElement().removeChild(getElement().getChild(index)); children.remove(index); return true; } return false; }
protected void cleanup(El target) { NodeList<Node> cn = target.dom.getChildNodes(); for (int i = cn.getLength() - 1; i >= 0; i--) { if (!cn.getItem(i).hasChildNodes()) { target.dom.removeChild(cn.getItem(i)); } } }
@Override public void clear() { Node child = getElement().getFirstChild(); while (child != null) { getElement().removeChild(child); child = getElement().getFirstChild(); } }
@Override public void clear() { Node child = getElement().getFirstChild(); while (child != null) { getElement().removeChild(child); child = getElement().getFirstChild(); } }
@Override public void clear() { final NodeList<Node> nodes = getElement().getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { final Node node = nodes.getItem(i); if (Element.is(node)) { getElement().removeChild(node); } } }
private void fixIE8FocusCaptureIssue() { Element e = DOM.createInputText(); Style elemStyle = e.getStyle(); elemStyle.setPosition(Style.Position.ABSOLUTE); elemStyle.setTop(-10, Style.Unit.PX); elemStyle.setWidth(0, Style.Unit.PX); elemStyle.setHeight(0, Style.Unit.PX); contentPanel.getElement().appendChild(e); e.focus(); contentPanel.getElement().removeChild(e); }