Package com.google.gwt.dom.client

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


    for (int i = 0, len = ns.getLength(); i < len; i++) {
      Element row = ns.getItem(i);
      row.getStyle().setPropertyPx("width", tw);
      if (row.getFirstChild() != null) {
        row.getFirstChildElement().getStyle().setPropertyPx("width", tw);
        TableSectionElement e = row.getFirstChild().cast();
        ((Element) e.getRows().getItem(0).getChildNodes().getItem(col)).getStyle().setPropertyPx("width", w);
      }
    }

    templateOnColumnWidthUpdated(col, w, tw);
    syncHScroll();
View Full Code Here


    for (int i = 0, len = ns.getLength(); i < len; i++) {
      Element row = ns.getItem(i);
      row.getStyle().setPropertyPx("width", tw);
      if (row.getFirstChild() != null) {
        row.getFirstChildElement().getStyle().setPropertyPx("width", tw);
        TableSectionElement e = row.getFirstChild().cast();
        TableRowElement nodeList = e.getRows().getItem(0);
        for (int j = 0; j < clen; j++) {
          ((Element) nodeList.getChildNodes().getItem(j)).getStyle().setPropertyPx("width", ws.get(j));
        }
      }
    }
View Full Code Here

    NodeList<Element> ns = getRows();
    for (int i = 0, len = ns.getLength(); i < len; i++) {
      Element elem = ns.getItem(i);
      elem.getStyle().setProperty("width", tw + "px");
      TableSectionElement e = (TableSectionElement) elem.getFirstChild();
      if (e != null) {
        e.getStyle().setProperty("width", tw + "px");
        Element cell = e.getRows().getItem(0).getChildNodes().getItem(index).cast();
        cell.getStyle().setProperty("display", display);
      }
    }

    templateOnColumnHiddenUpdated(index, hidden, tw);
View Full Code Here

    for (int i = 0, len = ns.getLength(); i < len; i++) {
      Element row = ns.getItem(i);
      row.getStyle().setPropertyPx("width", tw);
      if (row.getFirstChild() != null) {
        row.getFirstChildElement().getStyle().setPropertyPx("width", tw);
        TableSectionElement e = row.getFirstChild().cast();
        ((Element) e.getRows().getItem(0).getChildNodes().getItem(col)).getStyle().setPropertyPx("width", w);
      }
    }

    templateOnColumnWidthUpdated(col, w, tw);
    syncHScroll();
View Full Code Here

    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element s = gs.getItem(i).getChildNodes().getItem(2).cast();
      El.fly(s).setWidth(tw);
      if (s.getFirstChild() == null) return;
      El.fly(s.getFirstChildElement()).setWidth(tw);
      TableSectionElement tse = s.getFirstChildElement().cast();
      NodeList<Element> cells = tse.getRows().getItem(0).getChildNodes().cast();
      for (int j = 0, wlen = ws.size(); j < wlen; j++) {
        El.fly(cells.getItem(j)).setWidth(ws.get(j));
      }
    }
  }
View Full Code Here

    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element s = gs.getItem(i).getChildNodes().getItem(2).cast();
      El.fly(s).setWidth(tw);
      El.fly(s.getFirstChildElement()).setWidth(tw);

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

    String display = hidden ? "none" : "";
    for (int i = 0, len = gs.getLength(); i < len; i++) {
      Element s = gs.getItem(i).getChildNodes().getItem(2).cast();
      El.fly(s).setWidth(tw);
      El.fly(s.getFirstChildElement()).setWidth(tw);
      TableSectionElement tse = s.getFirstChildElement().cast();
      Element e = tse.getRows().getItem(0).getChildNodes().getItem(col).cast();
      e.getStyle().setProperty("display", display);
    }
  }
View Full Code Here

      assertEquals(
               "<table><thead></thead><tr id=\"r2\"></tr><tr id=\"r1\"></tr><tr id=\"r0\"></tr><tbody id=\"tbody1\"><tr id=\"trBody1\"></tr></tbody><tbody id=\"tbody2\"></tbody></table>",
               e.toString());

      // Act 5
      TableSectionElement tfoot = e.createTFoot();
      tfoot.setId("tfoot");

      // Assert 5
      assertEquals(
               "<table><thead></thead><tfoot id=\"tfoot\"></tfoot><tr id=\"r2\"></tr><tr id=\"r1\"></tr><tr id=\"r0\"></tr><tbody id=\"tbody1\"><tr id=\"trBody1\"></tr></tbody><tbody id=\"tbody2\"></tbody></table>",
               e.toString());
View Full Code Here

      // Pre Assert
      assertNull(e.getTFoot());
      assertEquals(0, e.getChildCount());

      // Act
      TableSectionElement tfoot = e.createTFoot();

      // Assert
      assertEquals(tfoot, e.getTFoot());
      assertEquals("tfoot", tfoot.getTagName());
      assertEquals(1, e.getChildCount());
      assertEquals(tfoot, e.getChild(0));

      // Act 2
      e.deleteTFoot();

      // Assert2
      assertNull(e.getTFoot());
      assertEquals(0, e.getChildCount());

      // Act 3
      TableSectionElement newTFoot = Document.get().createTFootElement();
      newTFoot.setInnerText("new");
      e.setTFoot(newTFoot);

      // Assert 3
      assertEquals(newTFoot, e.getTFoot());
      assertEquals("tfoot", newTFoot.getTagName());
      assertEquals(1, e.getChildCount());
      assertEquals(newTFoot, e.getChild(0));
      assertEquals("<table><tfoot>new</tfoot></table>", e.toString());

      // Act 4
View Full Code Here

      // Pre Assert
      assertNull(e.getTHead());
      assertEquals(0, e.getChildCount());

      // Act
      TableSectionElement thead = e.createTHead();

      // Assert
      assertEquals(thead, e.getTHead());
      assertEquals("thead", thead.getTagName());
      assertEquals(1, e.getChildCount());
      assertEquals(thead, e.getChild(0));

      // Act 2
      e.deleteTHead();

      // Assert 2
      assertNull(e.getTHead());
      assertEquals(0, e.getChildCount());

      // Act 3
      TableSectionElement newTHead = Document.get().createTHeadElement();
      newTHead.setInnerText("new");
      e.setTHead(newTHead);

      // Assert 3
      assertEquals(newTHead, e.getTHead());
      assertEquals("thead", newTHead.getTagName());
      assertEquals(1, e.getChildCount());
      assertEquals(newTHead, e.getChild(0));
      assertEquals("<table><thead>new</thead></table>", e.toString());

      // Act 4
View Full Code Here

TOP

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

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.