Tabnine Logo
Element.removeChild
Code IndexAdd Tabnine to your IDE (free)

How to use
removeChild
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.removeChild (Showing top 20 results out of 315)

origin: com.google.gwt/gwt-servlet

/**
 * 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);
}
origin: com.google.gwt/gwt-servlet

 private void stopResizing() {
  isResizing = false;
  RootPanel.getBodyElement().removeChild(glassElem);
 }
}
origin: com.google.gwt/gwt-servlet

private void setCurrentFaceElement(Element newFaceElement) {
 if (curFaceElement != newFaceElement) {
  if (curFaceElement != null) {
   getElement().removeChild(curFaceElement);
  }
  curFaceElement = newFaceElement;
  DOM.appendChild(getElement(), curFaceElement);
 }
}
origin: com.google.gwt/gwt-servlet

@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;
}
origin: com.google.gwt/gwt-servlet

@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;
}
origin: com.google.gwt/gwt-servlet

/**
 * 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);
 }
}
origin: com.google.gwt/gwt-servlet

@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;
}
origin: com.google.gwt/gwt-servlet

/**
 * 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;
}
origin: com.google.gwt/gwt-servlet

@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;
}
origin: net.wetheinter/gwt-user

/**
 * 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);
}
origin: com.sksamuel.jqm4gwt/jqm4gwt-library

/**
 * 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;
}
origin: com.sksamuel.jqm4gwt/jqm4gwt-library

private void removeChild(Element elem) {
  if (anchor == null) getElement().removeChild(elem);
  else if (controlGroup != null) controlGroup.getElement().removeChild(elem);
  else anchor.removeChild(elem);
}
origin: com.extjs/gxt

/**
 * Removes all the elements children.
 */
public El removeChildren() {
 El child = null;
 while ((child = firstChild()) != null) {
  dom.removeChild(child.dom);
 }
 setInnerHtml("");
 return this;
}
origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone

private void removeToolBar(String name) {
  Element element = getToolBar(name);
  if (element != null)
    getElement().removeChild(element);
}
origin: org.geomajas/geomajas-gwt-client-impl

@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;
}
origin: com.extjs/gxt

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));
  }
 }
}
origin: com.sksamuel.jqm4gwt/jqm4gwt-library

@Override
public void clear() {
  Node child = getElement().getFirstChild();
  while (child != null) {
    getElement().removeChild(child);
    child = getElement().getFirstChild();
  }
}
origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone

@Override
public void clear() {
  Node child = getElement().getFirstChild();
  while (child != null) {
    getElement().removeChild(child);
    child = getElement().getFirstChild();
  }
}
origin: stephenh/tessell

@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);
  }
 }
}
origin: com.haulmont.cuba/cuba-web-toolkit

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);
}
com.google.gwt.user.clientElementremoveChild

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now