Tabnine Logo
Element.hasChildNodes
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • JCheckBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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