Codota Logo
Element.hasChildNodes
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Element
private void myMethod () {
Element e =
  • Codota IconDOM.createDiv()
  • Codota IconDOM.createTR()
  • Codota IconDOM.createTable()
  • Smart code suggestions by Codota
}
origin: VueGWT/vue-gwt

private boolean isMounted() {
 return getElement().hasChildNodes();
}
origin: com.extjs/gxt

protected void cleanup(El row) {
 NodeList<Node> cn = row.dom.getChildNodes();
 for (int i = cn.getLength() - 1; i >= 0; i--) {
  Element td = (Element) cn.getItem(i);
  if (!td.hasChildNodes()) {
   row.dom.removeChild(td);
  }
 }
}
origin: com.extjs/gxt

protected void cleanCells() {
 NodeList<Element> tds = DomQuery.select("tr.x-grid3-hd-row > td", table.getElement());
 for (int i = 0; i < tds.getLength(); i++) {
  Element td = tds.getItem(i);
  if (!td.hasChildNodes()) {
   El.fly(td).removeFromParent();
  }
 }
}
origin: org.kuali.student.core/ks-common-ui

public void addWidget(Widget w) {
  if (w != null) {
    if (hasSeparator) {
      if (widgetPanel.getElement().hasChildNodes()) {
        HTML separatorWrapper = new HTML("<span style='float: left; margin-left: .7em; margin-right: .7em'>|</span>");
        separatorWrapper.addStyleName("ks-documentHeader-widgetPanel");
        widgetPanel.add(separatorWrapper);
      }
    }
    w.addStyleName("ks-documentHeader-widgetPanel");
    widgetPanel.add(w);
  }
}
origin: com.haulmont.cuba/cuba-web-toolkit

public void updateFromUIDL(UIDL uidl) {
  if (getElement().hasChildNodes()) {
    getElement().removeAllChildren();
  initialized = getElement().hasChildNodes();
origin: com.extjs/gxt

private void ensureFocusElement() {
 if (focusEl != null) {
  focusEl.removeFromParent();
 }
 focusEl = new El(focusImpl.createFocusable());
 focusEl.dom.getStyle().setProperty("outline", "none");
 getElement().appendChild(focusEl.dom);
 if (focusEl.dom.hasChildNodes()) {
  focusEl.dom.getFirstChildElement().getStyle().setProperty("outline", "none");
  com.google.gwt.dom.client.Style focusElStyle = focusEl.dom.getFirstChildElement().getStyle();
  focusElStyle.setProperty("borderWidth", "0px");
  focusElStyle.setProperty("fontSize", "1px");
  focusElStyle.setPropertyPx("lineHeight", 1);
 }
 focusEl.setLeft(0);
 focusEl.setTop(0);
 focusEl.makePositionable(true);
 focusEl.addEventsSunk(Event.FOCUSEVENTS);
}
com.google.gwt.user.clientElementhasChildNodes

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

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Socket (java.net)
    Provides a client-side TCP socket.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now