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

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.DockLayoutPanelInfo.refresh()


            "      Button button = new Button();",
            "      addWest(button, 2.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    // bounds
    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    {
      WidgetInfo button = getJavaInfoByName("button");
      Rectangle bounds = button.getBounds();
View Full Code Here


            "      Button button = new Button();",
            "      addWest(button, 2.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    Property unitProperty = panel.getPropertyByTitle("Unit");
    setPropertyText(unitProperty, "MM");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button = new Button();",
            "      addNorth(button, 25.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    Property unitProperty = panel.getPropertyByTitle("Unit");
    setPropertyText(unitProperty, "CM");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button_5 = new Button();",
            "      add(button_5);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    {
      WidgetInfo button_1 = getJavaInfoByName("button_1");
      assertEquals("WEST", panel.getEdge(button_1));
      assertTrue(panel.isHorizontalEdge(button_1));
      assertFalse(panel.isVerticalEdge(button_1));
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 1.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setEdge(button, "NORTH");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 1.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setEdge(button, "CENTER");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setEdge(button, "WEST");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button center = new Button();",
            "      add(center);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button_1");
    panel.setEdge(button, "NORTH");
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button_5 = new Button();",
            "      add(button_5);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    {
      WidgetInfo button_1 = getJavaInfoByName("button_1");
      String text = ObjectsLabelProvider.INSTANCE.getText(button_1);
      assertThat(text).startsWith("WEST - ");
    }
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 1.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
    WidgetInfo button = getJavaInfoByName("button");
    // prepare "Edge" property
    Property property = button.getPropertyByTitle("Edge");
    assertNotNull(property);
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.