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

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

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

origin: com.google.gwt/gwt-servlet

@Override
public void clear() {
 try {
  doLogicalClear();
 } finally {
  getElement().removeAllChildren();
 }
}
origin: com.google.gwt/gwt-servlet

 /**
  * Clears the rootPanel. If clearDom is true, then also remove any DOM
  * elements that are not widgets.
  *
  * <p>By default {@link #clear()} will only remove children that are GWT widgets.
  * This method also provides the option to remove all children including the
  * non-widget DOM elements that are directly added (e.g. elements added via
  * {@code getElement().appendChild(...)}.
  *
  * @param clearDom if {@code true} this method will also remove any DOM
  *  elements that are not widgets.
  *
  * @deprecated Simply removing all DOM elements can cause issues with other elements in the page.
  */
 @Deprecated
 public void clear(boolean clearDom) {
  clear();

  if (clearDom) {
   getElement().removeAllChildren();
  }
 }
}
origin: fr.putnami.pwt/pwt

@Override
public void clearErrors() {
  this.errors.clear();
  this.getElement().removeAllChildren();
}
origin: Putnami/putnami-web-toolkit

@Override
public void clearErrors() {
  this.errors.clear();
  this.getElement().removeAllChildren();
}
origin: net.wetheinter/gwt-user

@Override
public void clear() {
 try {
  doLogicalClear();
 } finally {
  getElement().removeAllChildren();
 }
}
origin: com.vaadin.external.gwt/gwt-user

@Override
public void clear() {
 try {
  doLogicalClear();
 } finally {
  getElement().removeAllChildren();
 }
}
origin: de.esoco/gewt

/***************************************
 * {@inheritDoc}
 */
@Override
public void clear()
{
  super.clear();
  getElement().removeAllChildren();
}
origin: Putnami/putnami-web-toolkit

  @Override
  public void clear() {
    for (CodeLine line : this.lines) {
      line.asWidget().removeFromParent();
    }
    this.getElement().removeAllChildren();
    this.lines.clear();
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public void updateIcon() {
  Optional.ofNullable(appTile.getIcon()).ifPresent(iconReference -> {
    icon.removeAllChildren();
    icon.appendChild(iconSupplier.apply(appTile.getIcon().getURL()).getElement());
  });
}

origin: org.gwtbootstrap3/gwtbootstrap3-extras

/**
 * Removes all contents and restores the editable instance
 * to an <code>_emptyPara_</code>: &lt;p&gt;&lt;br&gt;&lt;/p&gt;
 */
@Override
public void clear() {
  if (isAttached()) {
    command(getElement(), "empty");
  } else {
    super.clear();
    getElement().removeAllChildren();
  }
}
origin: gwtbootstrap3/gwtbootstrap3-extras

/**
 * Removes all contents and restores the editable instance
 * to an <code>_emptyPara_</code>: &lt;p&gt;&lt;br&gt;&lt;/p&gt;
 */
@Override
public void clear() {
  if (isAttached()) {
    command(getElement(), "empty");
  } else {
    super.clear();
    getElement().removeAllChildren();
  }
}
origin: Putnami/putnami-web-toolkit

  @Override
  public void edit(String value) {
    this.getElement().removeAllChildren();
    if (value != null) {
      AnchorElement anchor = Document.get().createAnchorElement();
      Icon icon = new Icon();
      icon.setType(IconFont.ICON_MAIL);
      StringBuffer sb = new StringBuffer();
      sb.append("mailto:").append(value);
      anchor.setHref(sb.toString());
      anchor.appendChild(icon.getElement());
      anchor.appendChild(Document.get().createTextNode(value));

      this.getElement().appendChild(anchor);
    }
  }
}
origin: fr.putnami.pwt/pwt

public void setText(String text) {
  this.getElement().removeAllChildren();
  this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text)));
}
origin: Putnami/putnami-web-toolkit

public void setText(String text) {
  this.getElement().removeAllChildren();
  this.getElement().appendChild(Document.get().createTextNode(HTMLUtils.unescapeHTML(text)));
}
origin: fr.putnami.pwt/pwt

  @Override
  public void redraw() {
    this.getElement().removeAllChildren();
    for (Error error : this.errors) {
      LIElement errorElement = Document.get().createLIElement();
      errorElement.setInnerText(error.getMessageKey());
      this.getElement().appendChild(errorElement);
    }
  }
}
origin: Putnami/putnami-web-toolkit

  @Override
  public void redraw() {
    this.getElement().removeAllChildren();
    for (Error error : this.errors) {
      LIElement errorElement = Document.get().createLIElement();
      errorElement.setInnerText(error.getMessageKey());
      this.getElement().appendChild(errorElement);
    }
  }
}
origin: Putnami/putnami-web-toolkit

private void resetInner() {
  this.anchor.clear();
  this.anchor.getElement().removeAllChildren();
  if (this.label != null) {
    this.anchor.getElement().setInnerHTML(this.label);
  }
  if (this.iconType != null) {
    Icon icon = new Icon();
    icon.setType(this.iconType);
    this.anchor.getElement().insertFirst(icon.getElement());
  }
}
origin: fr.putnami.pwt/pwt

private void resetInner() {
  this.anchor.clear();
  this.anchor.getElement().removeAllChildren();
  if (this.label != null) {
    this.anchor.getElement().setInnerHTML(this.label);
  }
  if (this.iconType != null) {
    Icon icon = new Icon();
    icon.setType(this.iconType);
    this.anchor.getElement().insertFirst(icon.getElement());
  }
}
origin: Putnami/putnami-web-toolkit

private void resetInner() {
  this.anchor.getElement().removeAllChildren();
  if (this.iconType != null) {
    Icon icon = new Icon();
    icon.setType(this.iconType);
    this.anchor.getElement().appendChild(icon.getElement());
  }
  if (this.label != null) {
    Text textElem = Document.get().createTextNode(this.label);
    this.anchor.getElement().appendChild(textElem);
  }
  Text spaceElem = Document.get().createTextNode(" ");
  this.anchor.getElement().appendChild(spaceElem);
  this.anchor.getElement().appendChild(this.caret);
}
origin: fr.putnami.pwt/pwt

private void resetInner() {
  this.anchor.getElement().removeAllChildren();
  if (this.iconType != null) {
    Icon icon = new Icon();
    icon.setType(this.iconType);
    this.anchor.getElement().appendChild(icon.getElement());
  }
  if (this.label != null) {
    Text textElem = Document.get().createTextNode(this.label);
    this.anchor.getElement().appendChild(textElem);
  }
  Text spaceElem = Document.get().createTextNode(" ");
  this.anchor.getElement().appendChild(spaceElem);
  this.anchor.getElement().appendChild(this.caret);
}
com.google.gwt.user.clientElementremoveAllChildren

Popular methods of Element

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

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ImageIO (javax.imageio)
  • 21 Best Atom Packages for 2021
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