Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.NodeList


    }

    NodeList<Element> gs = getGroups();
    List<Element> rows = new ArrayList<Element>();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      NodeList g = gs.getItem(i).getChildNodes().getItem(1).getChildNodes();
      for (int j = 0, len2 = g.getLength(); j < len2; j++) {
        rows.add((Element) g.getItem(j));
      }
    }
    return rows.toArray(new Element[0]);
  }
View Full Code Here


  private void updateGroupWidths() {
    if (!enableGrouping || ds.getCount() < 1) {
      return;
    }
    String tw = Math.max(cm.getTotalWidth(), el.dom.getOffsetWidth() - scrollOffset) + "px";
    NodeList gs = getGroups();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element e = gs.getItem(i).getFirstChild().cast();
      e.getStyle().setProperty("width", tw);
    }
  }
View Full Code Here

  protected Element[] getRows() {
    if (!hasRows()) {
      return new Element[0];
    }
    NodeList ns = mainBody.dom.getChildNodes();
    Element[] rows = new Element[ns.getLength()];
    for (int i = 0, len = ns.getLength(); i < len; i++) {
      rows[i] = ns.getItem(i).cast();
    }

    return rows;
  }
View Full Code Here

    }
    this.cm = cm;
  }

  protected void initElements() {
    NodeList cs = grid.getElement().getFirstChild().getChildNodes();

    el = grid.el().firstChild();

    mainWrap = new El((com.google.gwt.user.client.Element) cs.getItem(0));
    mainHd = mainWrap.firstChild();

    if (grid.isHideHeaders()) {
      mainHd.setVisible(false);
    }
View Full Code Here

    }

    NodeList<Element> gs = getGroups();
    List<Element> rows = new ArrayList<Element>();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      NodeList g = gs.getItem(i).getChildNodes().getItem(1).getChildNodes();
      for (int j = 0, len2 = g.getLength(); j < len2; j++) {
        rows.add((Element) g.getItem(j));
      }
    }
    return rows.toArray(new Element[0]);
  }
View Full Code Here

  private void updateGroupWidths() {
    if (!enableGrouping || ds.getCount() < 1) {
      return;
    }
    String tw = Math.max(cm.getTotalWidth(), el.dom.getOffsetWidth() - scrollOffset) + "px";
    NodeList gs = getGroups();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element e = gs.getItem(i).getFirstChild().cast();
      e.getStyle().setProperty("width", tw);
    }
  }
View Full Code Here

    }
    return "";
  }

  protected Element[] getRows() {
    NodeList ns = mainBody.dom.getChildNodes();
    Element[] rows = new Element[ns.getLength()];
    for (int i = 0, len = ns.getLength(); i < len; i++) {
      rows[i] = ns.getItem(i).cast();
    }

    return rows;
  }
View Full Code Here

  protected String getTotalWidth() {
    return cm.getTotalWidth() + "px";
  }

  protected void initElements() {
    NodeList cs = grid.getElement().getFirstChild().getChildNodes();

    el = grid.el().firstChild();

    mainWrap = new El((com.google.gwt.user.client.Element) cs.getItem(0));
    mainHd = mainWrap.firstChild();

    if (grid.isHideHeaders()) {
      mainHd.setVisible(false);
    }
View Full Code Here

    }
    return data;
  }

  protected void doAllWidths(List<String> ws, String tw) {
    NodeList gs = getGroups();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element s = gs.getItem(i).getChildNodes().getItem(2).cast();
      s.getStyle().setProperty("width", tw);
      s.getFirstChildElement().getStyle().setProperty("width", tw);
      TableSectionElement tse = s.getFirstChildElement().cast();
      NodeList<Element> cells = (NodeList) tse.getRows().getItem(0).getChildNodes();
      for (int j = 0, wlen = ws.size(); j < wlen; j++) {
View Full Code Here

    buf.append(renderSummary(data, cs));
    buf.append("</div>");
  }

  protected void doWidth(int col, String w, String tw) {
    NodeList gs = getGroups();
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element s = gs.getItem(i).getChildNodes().getItem(2).cast();
      s.getStyle().setProperty("width", tw);
      s.getFirstChildElement().getStyle().setProperty("width", tw);

      TableSectionElement tse = s.getFirstChildElement().cast();
      Element e = tse.getRows().getItem(0).getChildNodes().getItem(col).cast();
View Full Code Here

TOP

Related Classes of com.google.gwt.dom.client.NodeList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.