congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Element.getChildCount
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: ltearno/hexa.tools

public int getTabCount()
{
  return getElement().getChildCount() - 1;
}
origin: Putnami/putnami-web-toolkit

public boolean hasError() {
  return this.getElement().getChildCount() > 0;
}
origin: fr.lteconsulting/hexa.core

public int getTabCount()
{
  return getElement().getChildCount() - 1;
}
origin: stephenh/tessell

@Override
public boolean hasErrors() {
 return getElement().getChildCount() > 0;
}
origin: fr.putnami.pwt/pwt

public boolean hasError() {
  return this.getElement().getChildCount() > 0;
}
origin: stackoverflow.com

 public void loadQuests() {
  XmlReader r = new XmlReader();
  Element e = null;
  try {
    e = r.parse(Gdx.files.internal("quest/quest.xml"));
  }
  catch (IOException a) {
  }

  if (e != null) {
    for (int i = 0; i < e.getChildCount(); i++) {
      m_quests.add(new Quest(e.getChild(i))); //has reference to the core class
    }
  }
}
origin: gwtbootstrap3/gwtbootstrap3-extras

@Override
public List<String> getValue() {
  if (isAttached())
    return super.getValue();
  else {
    List<String> value = new ArrayList<String>();
    for(int i=0; i<getElement().getChildCount(); i++) {
      value.add(getElement().getChild(i).getNodeValue());
    }
    return value;
  }
}
origin: fr.lteconsulting/hexa.core

public Element getHeaderElement()
{
  int nbc = getElement().getChildCount();
  for( int c = 0; c < nbc; c++ )
  {
    Node node = getElement().getChild( c );
    if( node.getNodeName().equalsIgnoreCase( "thead" ) )
      return (com.google.gwt.dom.client.Element.as( node ));
  }
  return null;
}
origin: org.gwtbootstrap3/gwtbootstrap3-extras

@Override
public List<String> getValue() {
  if (isAttached())
    return super.getValue();
  else {
    List<String> value = new ArrayList<String>();
    for(int i=0; i<getElement().getChildCount(); i++) {
      value.add(getElement().getChild(i).getNodeValue());
    }
    return value;
  }
}
origin: ltearno/hexa.tools

public Element getHeaderElement()
{
  int nbc = getElement().getChildCount();
  for( int c = 0; c < nbc; c++ )
  {
    Node node = getElement().getChild( c );
    if( node.getNodeName().equalsIgnoreCase( "thead" ) )
      return (com.google.gwt.dom.client.Element.as( node ));
  }
  return null;
}
origin: fr.lteconsulting/hexa.core

@SuppressWarnings( "deprecation" )
@Override
public com.google.gwt.user.client.Element getBodyElement()
{
  int nbc = getElement().getChildCount();
  for( int c = 0; c < nbc; c++ )
  {
    Node node = getElement().getChild( c );
    if( node.getNodeName().equalsIgnoreCase( "tbody" ) )
      return node.<com.google.gwt.user.client.Element>cast();
  }
  return null;
}
origin: ltearno/hexa.tools

@SuppressWarnings( "deprecation" )
@Override
public com.google.gwt.user.client.Element getBodyElement()
{
  int nbc = getElement().getChildCount();
  for( int c = 0; c < nbc; c++ )
  {
    Node node = getElement().getChild( c );
    if( node.getNodeName().equalsIgnoreCase( "tbody" ) )
      return node.<com.google.gwt.user.client.Element>cast();
  }
  return null;
}
origin: stackoverflow.com

 XmlReader r = new XmlReader();
Element e = r.parse(xml);//<--- the XML as string also possible as file
for (int i = 0; i < e.getChildCount(); i++)
  {
    Element child = e.getChild(i);
    switch(child.getName()){
      case "sampleimplement1":
      //create sample1
      break;
....
....
  }
origin: fr.lteconsulting/hexa.core

  private Element getTab( int index )
  {
    if( index >= getElement().getChildCount() - 1 )
      return null;

    return Element.as( getElement().getChild( index ) ).cast();
  }
}
origin: ltearno/hexa.tools

  private Element getTab( int index )
  {
    if( index >= getElement().getChildCount() - 1 )
      return null;

    return Element.as( getElement().getChild( index ) ).cast();
  }
}
origin: net.sf.advanced-gwt/advanced-gwt

/**                                                 
 * This method gets a TH element.
 *
 * @param column is a column number.
 * @return an element.
 */
protected Element getThElement(int column) {
  Element thead = getHeaderTable().getTHeadElement();
  if (thead.getChildCount() > 0 && thead.getFirstChildElement().getChildCount() > column) {
    Element tr = DOM.getChild(thead, 0);
    return DOM.getChild(tr, column);
  }
  return null;
}
origin: net.sf.advanced-gwt/advanced-gwt

/**
 * This method gets a footer TD element.
 *
 * @param column is a column number.
 * @return an element.
 */
protected Element getFooterTdElement(int column) {
  Element tfoot = getFooterTable().getTFootElement();
  if (tfoot != null) {
    if (tfoot.getChildCount() > 0 && tfoot.getFirstChildElement().getChildCount() > column) {
      Element tr = DOM.getChild(tfoot, 0);
      return DOM.getChild(tr, column);
    }
  }
  return null;
}
origin: org.geomajas/geomajas-client-gwt2-impl

/**
 * Clone a single SVG element.
 * 
 * @param source
 *            The source SVG element.
 * @return Returns the clone.
 */
private static Element clone(Element source) {
  if (source == null || source.getNodeName() == null) {
    return null;
  }
  if ("#text".equals(source.getNodeName())) {
    return Document.get().createTextNode(source.getNodeValue()).cast();
  }
  Element clone = createElementNS(Dom.NS_SVG, source.getNodeName());
  cloneAttributes(source, clone);
  for (int i = 0; i < source.getChildCount(); i++) {
    Element child = source.getChild(i).cast();
    clone.appendChild(clone(child));
  }
  return clone;
}
origin: org.geomajas/geomajas-gwt-client-impl

/**
 * Clone a single SVG element.
 * 
 * @param source
 *            The source SVG element.
 * @return Returns the clone.
 */
private static Element clone(Element source) {
  if (source == null || source.getNodeName() == null) {
    return null;
  }
  if ("#text".equals(source.getNodeName())) {
    return Document.get().createTextNode(source.getNodeValue()).cast();
  }
  Element clone = createElementNS(Dom.NS_SVG, source.getNodeName());
  cloneAttributes(source, clone);
  for (int i = 0; i < source.getChildCount(); i++) {
    Element child = source.getChild(i).cast();
    clone.appendChild(clone(child));
  }
  return clone;
}
origin: org.eclipse.che.core/che-core-ide-ui

private void expandOrCollapse() {
 if (!expanded) {
  expanded = true;
  if (container.getElement().getChildCount() == 0) {
   renderChildren();
  }
  animator.show((elemental.dom.Element) container.getElement());
  expandControl.addClassName(resources.defaultCategoriesListCss().expandedImage());
 } else {
  animator.hide((elemental.dom.Element) container.getElement());
  expandControl.removeClassName(resources.defaultCategoriesListCss().expandedImage());
  expanded = false;
 }
}
com.google.gwt.user.clientElementgetChildCount

Popular methods of Element

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook Extensions
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