Package com.google.gdt.eclipse.designer.uibinder.model.widgets.GridInfo

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.GridInfo.Row


        "    <g:row wbp:name='row_1'/>",
        "    <g:row wbp:name='row_2'/>",
        "    <g:row wbp:name='row_3'/>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Row row_1 = getObjectByName("row_1");
    Row row_3 = getObjectByName("row_3");
    //
    canvas.beginDrag(row_3).dragTo(row_1, 0.5, 1).endDrag();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here


        "    </g:row>",
        "    <g:row wbp:name='refRow'/>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    Row refRow = getObjectByName("refRow");
    //
    canvas.beginDrag(cell).dragTo(refRow, 0.5, 1).endDrag();
    assertXML(
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

        "    <g:row wbp:name='row_1'/>",
        "    <g:row wbp:name='row_2'/>",
        "    <g:row wbp:name='row_3'/>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Row row_1 = getObjectByName("row_1");
    Row row_3 = getObjectByName("row_3");
    //
    tree.startDrag(row_3).dragBefore(row_1).endDrag();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

        "    </g:row>",
        "    <g:row wbp:name='refRow'/>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    Row refRow = getObjectByName("refRow");
    //
    tree.startDrag(cell).dragBefore(refRow).endDrag();
    assertXML(
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

    // has 2 rows
    List<Row> rows = grid.getRows();
    assertThat(rows).hasSize(2);
    // row 0
    {
      Row row = rows.get(0);
      {
        Rectangle bounds = row.getBounds();
        assertEquals(new Rectangle(0, 2, 450, 147), bounds);
      }
      // has 2 cells
      List<Cell> cells = row.getCells();
      assertThat(cells).hasSize(2);
      {
        Cell cell = cells.get(0);
        Rectangle bounds = cell.getBounds();
        assertEquals(new Rectangle(2, 0, 147, 147), bounds);
      }
      {
        Cell cell = cells.get(1);
        Rectangle bounds = cell.getBounds();
        assertEquals(new Rectangle(151, 0, 147, 147), bounds);
      }
    }
    // row 1
    {
      Row row = rows.get(1);
      {
        Rectangle bounds = row.getBounds();
        assertEquals(new Rectangle(0, 151, 450, 147), bounds);
      }
      List<Cell> cells = row.getCells();
      assertThat(cells).hasSize(3);
      {
        Cell cell = cells.get(0);
        Rectangle bounds = cell.getBounds();
        assertEquals(new Rectangle(2, 0, 147, 147), bounds);
View Full Code Here

            "    <g:row wbp:name='row_1'/>",
            "    <g:row wbp:name='row_2'/>",
            "    <g:row wbp:name='row_3'/>",
            "  </g:Grid>",
            "</ui:UiBinder>");
    Row row_1 = getObjectByName("row_1");
    Row row_3 = getObjectByName("row_3");
    //
    grid.command_MOVE(row_3, row_1);
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
View Full Code Here

            "    </g:row>",
            "    <g:row wbp:name='refRow'/>",
            "  </g:Grid>",
            "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    Row refRow = getObjectByName("refRow");
    //
    grid.command_ADD(cell, refRow);
    assertXML(
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

            "<ui:UiBinder>",
            "  <g:Grid>",
            "    <g:row wbp:name='refRow'/>",
            "  </g:Grid>",
            "</ui:UiBinder>");
    Row refRow = getObjectByName("refRow");
    //
    WidgetInfo newButton = createButton();
    grid.command_CREATE(newButton, refRow);
    assertXML(
        "// filler filler filler filler filler",
View Full Code Here

        "    </g:Grid>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    WidgetInfo button = getObjectByName("button");
    GridInfo grid = getObjectByName("grid");
    Row refRow = getObjectByName("refRow");
    //
    grid.command_ADD(button, refRow);
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
View Full Code Here

        "    </g:row>",
        "    <g:row wbp:name='row'/>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    WidgetInfo button = getObjectByName("button");
    Row row = getObjectByName("row");
    //
    row.command_ADD(button, null);
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.uibinder.model.widgets.GridInfo.Row

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.