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

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo.refresh()


            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new TableLayout(2));",
            "  }",
            "}");
    panel.refresh();
    //
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    assertThat(gridInfo.getRowCount()).isZero();
    assertThat(gridInfo.getRowIntervals()).isEmpty();
View Full Code Here


            "      Text text = new Text();",
            "      add(text);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    List<WidgetInfo> widgets = panel.getWidgets();
    // no variable, no text -> filler
    {
      WidgetInfo widget = widgets.get(0);
      assertTrue(TableLayoutInfo.isFiller(widget));
View Full Code Here

            "      add(button);",
            "    }",
            "    add(new Text());",
            "  }",
            "}");
    shell.refresh();
    assertThat(shell.getWidgets()).hasSize(2);
    WidgetInfo button = shell.getWidgets().get(0);
    WidgetInfo filler = shell.getWidgets().get(1);
    //
    IObjectPresentation presentation = shell.getPresentation();
View Full Code Here

            "      Text label_3 = new Text();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getWidgets().get(2), 0, 1, 1, 1);
    // refresh() second time, just to covert double initialization, no changes expected
    panel.refresh();
View Full Code Here

    panel.refresh();
    assertCells(panel.getWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getWidgets().get(2), 0, 1, 1, 1);
    // refresh() second time, just to covert double initialization, no changes expected
    panel.refresh();
    assertCells(panel.getWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getWidgets().get(2), 0, 1, 1, 1);
  }
View Full Code Here

            "      Text label_3 = new Text();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getWidgets().get(0), 0, 0, 2, 1);
    assertCells(panel.getWidgets().get(1), 0, 1, 1, 1);
    assertCells(panel.getWidgets().get(2), 1, 1, 1, 1);
  }
View Full Code Here

            "      Text label_3 = new Text();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getWidgets().get(0), 0, 0, 1, 2);
    assertCells(panel.getWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getWidgets().get(2), 1, 1, 1, 1);
  }
View Full Code Here

            "      Text label_3 = new Text('A');",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(2, gridInfo.getColumnCount());
    assertEquals(2, gridInfo.getRowCount());
View Full Code Here

            "      Text text = new Text('A');",
            "      add(text);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(2, gridInfo.getColumnCount());
    assertEquals(1, gridInfo.getRowCount());
View Full Code Here

            "      Text text = new Text('A');",
            "      add(text);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(1, gridInfo.getColumnCount());
    assertEquals(1, gridInfo.getRowCount());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.