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

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.WidgetInfo


        "      <c:CellTree wbp:name='cellTree' ui:field='cellTree'/>",
        "    </g:at>",
        "  </g:AbsolutePanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo cellTree = getObjectByName("cellTree");
    // we have actual object
    Object cellTreeObject = cellTree.getObject();
    assertEquals(
        "com.google.gwt.user.cellview.client.CellTree",
        cellTreeObject.getClass().getName());
    // has reasonable size (we fill it with sample content)
    {
      Rectangle bounds = cellTree.getBounds();
      assertThat(bounds.width).isGreaterThan(300).isLessThan(400);
      assertThat(bounds.height).isGreaterThan(45);
    }
  }
View Full Code Here


            "<ui:UiBinder xmlns:c='urn:import:com.google.gwt.user.cellview.client'>",
            "  <g:FlowPanel/>",
            "</ui:UiBinder>");
    refresh();
    //
    WidgetInfo newTree = createObject("com.google.gwt.user.cellview.client.CellTree");
    flowContainer_CREATE(panel, newTree, null);
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder xmlns:c='urn:import:com.google.gwt.user.cellview.client'>",
View Full Code Here

        "  <g:FlowPanel>",
        "      <c:DataGrid wbp:name='DataGrid' ui:field='dataGrid'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo dataGrid = getObjectByName("DataGrid");
    // we have actual object
    Object dataGridObject = dataGrid.getObject();
    assertEquals(
        "com.google.gwt.user.cellview.client.DataGrid",
        dataGridObject.getClass().getName());
    // we fill it with columns and items
    {
View Full Code Here

        "  <g:FlowPanel>",
        "      <c:DataGrid wbp:name='DataGrid' ui:field='dataGrid'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo dataGrid = getObjectByName("DataGrid");
    // we have actual object
    Object dataGridObject = dataGrid.getObject();
    assertEquals("test.client.MyDataGrid", dataGridObject.getClass().getName());
    // we fill it with columns and items
    {
      assertEquals(3, ScriptUtils.evaluate("getColumnCount()", dataGridObject));
      assertEquals(5, ScriptUtils.evaluate("getRowCount()", dataGridObject));
View Full Code Here

        "    <g:Button wbp:name='button_1' ui:field='button'/>",
        "    <g:Button wbp:name='button_2'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button_2 = getObjectByName("button_2");
    //
    String name = NameSupport.ensureName(button_2);
    assertEquals("button_1", name);
    assertXML(
        "// filler filler filler filler filler",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    NameSupport.removeName(button);
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='oldName'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    NameSupport.setName(button, "newName");
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='oldName'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    NameSupport.setName(button, "newName");
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

        "    <g:Button wbp:name='button' ui:field='button'/>",
        "    <g:Button ui:field='button_1'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    NameSupport.setName(button, "buttonA");
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

            "  <g:FlowPanel/>",
            "</ui:UiBinder>");
    refresh();
    // do CREATE
    {
      WidgetInfo newButton = createObject("test.client.MyButton");
      flowContainer_CREATE(panel, newButton, null);
    }
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

TOP

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

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.