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

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


      }
      // 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);
      }
      {
        Cell cell = cells.get(1);
        Rectangle bounds = cell.getBounds();
        assertEquals(new Rectangle(151, 0, 147, 147), bounds);
      }
      {
        Cell cell = cells.get(2);
        Rectangle bounds = cell.getBounds();
        assertEquals(new Rectangle(301, 0, 147, 147), bounds);
      }
    }
  }
View Full Code Here


        "        <g:Button/>",
        "      </g:customCell>",
        "    </g:row>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    // do delete
    cell.delete();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:Grid>",
View Full Code Here

            "      <g:cell wbp:name='otherCell'/>",
            "    </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>",
View Full Code Here

        "    <g:row>",
        "      <g:cell wbp:name='cell'/>",
        "    </g:row>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    //
    IMenuManager contextMenu = getContextMenu(cell);
    IAction action = findChildAction(contextMenu, "Insert cell");
    assertNotNull(action);
    assertNotNull(action.getImageDescriptor());
View Full Code Here

        "    <g:row>",
        "      <g:cell wbp:name='cell'/>",
        "    </g:row>",
        "  </g:Grid>",
        "</ui:UiBinder>");
    Cell cell = getObjectByName("cell");
    //
    IMenuManager contextMenu = getContextMenu(cell);
    IAction action = findChildAction(contextMenu, "Append cell");
    assertNotNull(action);
    assertNotNull(action.getImageDescriptor());
View Full Code Here

TOP

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

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.