congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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