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

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


            "    panel.setWidget(1, 1, new Button('B'));",
            "    panel.setWidget(2, 3, new Button('C'));",
            "    panel.getFlexCellFormatter().setColSpan(1, 1, 3);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    assertThat(panel.getColumns()).hasSize(4);
    assertThat(panel.getRows()).hasSize(3);
    assertEquals("4 3 [4, 2, 4] {"
View Full Code Here


            "    panel.setWidget(0, 0, new Button('A'));",
            "    panel.setWidget(0, 1, new Button('B'));",
            "    panel.getCellFormatter().setWidth(0, 0, '100px');",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    assertThat(panel.getColumns()).hasSize(2);
    assertThat(panel.getRows()).hasSize(1);
    assertEquals("2 1 [2] {(0,0)=(1,1) (1,0)=(1,1)}", panel.getStatus().toString());
View Full Code Here

            "    panel.setWidget(0, 0, new Button('A'));",
            "    panel.setWidget(0, 1, new Button('B'));",
            "    panel.getCellFormatter().setWidth(0, 1, '100px');",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    assertThat(panel.getColumns()).hasSize(2);
    assertThat(panel.getRows()).hasSize(1);
    assertEquals("2 1 [2] {(0,0)=(1,1) (1,0)=(1,1)}", panel.getStatus().toString());
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    WidgetInfo button = createWidget("com.google.gwt.user.client.ui.Button");
    // ask image
    {
      Image image = button.getImage();
      assertNotNull(image);
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    WidgetInfo button = createWidget("com.google.gwt.user.client.ui.Button");
    // ask image
    {
      Image image = button.getImage();
      assertNotNull(image);
View Full Code Here

            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "    rootPanel.add(new TextBox());",
            "  }",
            "}");
    frame.refresh();
    WidgetInfo textBox = frame.getChildrenWidgets().get(0);
    // initially "textBox" is attached
    assertEquals(Boolean.TRUE, ReflectionUtils.invokeMethod(textBox.getObject(), "isAttached()"));
    // ...and only TextBox is child of RootPanel
    assertEquals(1, ReflectionUtils.invokeMethod(frame.getObject(), "getWidgetCount()"));
View Full Code Here

    }
    // "textBox" still should be attached
    assertEquals(Boolean.TRUE, ReflectionUtils.invokeMethod(textBox.getObject(), "isAttached()"));
    // there was problem that RootPanel was not able to clear after using live images
    {
      frame.refresh();
      // still only TextBox is child of RootPanel
      assertEquals(1, ReflectionUtils.invokeMethod(frame.getObject(), "getWidgetCount()"));
    }
  }
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    WidgetInfo button = createWidget("com.google.gwt.user.client.ui.Hidden");
    // ask image
    {
      Image image = button.getImage();
      assertNotNull(image);
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    WidgetInfo myButton = createWidget("test.client.MyButton");
    // ask image
    {
      Image image = myButton.getImage();
      assertNotNull(image);
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    // add log listener for exception validation
    ILog log = DesignerPlugin.getDefault().getLog();
    ILogListener logListener = new ILogListener() {
      public void logging(IStatus status, String plugin) {
        assertEquals(IStatus.ERROR, status.getSeverity());
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.