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

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


            "  }",
            "}");
    assertHierarchy(
        "{RootLayoutPanel.get()} {local-unique: rootPanel} {/RootLayoutPanel.get()/ /rootPanel.add(button)/ /rootPanel.setWidgetLeftRight(button, 10, Unit.PX, 20, Unit.PX)/ /rootPanel.setWidgetTopBottom(button, 30, Unit.PX, 40, Unit.PX)/}",
        "  {new: com.google.gwt.user.client.ui.Button} {local-unique: button} {/new Button()/ /rootPanel.add(button)/ /rootPanel.setWidgetLeftRight(button, 10, Unit.PX, 20, Unit.PX)/ /rootPanel.setWidgetTopBottom(button, 30, Unit.PX, 40, Unit.PX)/}");
    frame.refresh();
    // bounds
    WidgetInfo button = getJavaInfoByName("button");
    {
      Rectangle expected = new Rectangle(10, 30, 450 - 10 - 20, 300 - 30 - 40);
      assertEquals(expected, button.getBounds());
View Full Code Here


            "      rootPanel.setWidgetLeftWidth(button_2, 200, Unit.PX, 150, Unit.PX);",
            "      rootPanel.setWidgetTopHeight(button_2, 150, Unit.PX, 50, Unit.PX);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    ComplexPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button = getJavaInfoByName("button_1");
    //
    panel.command_MOVE2(button, null);
    assertEditor(
View Full Code Here

            "      rootPanel.setWidgetRightWidth(button_RW_BH, 10.0, Unit.PX, 100, Unit.PX);",
            "      rootPanel.setWidgetBottomHeight(button_RW_BH, 20.0, Unit.PX, 50, Unit.PX);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    {
      WidgetInfo button = getJavaInfoByName("button");
      assertEquals("100.0px x 50.0px", frame.getLocationHint(button, 100, 50));
      assertEquals(false, frame.getLocationHint_isTrailing(button, true));
View Full Code Here

            "      Button button = new Button();",
            "      rootPanel.add(button);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    button.getBounds().setSize(150, 150);
    frame.command_LOCATION(button, new Point(10, 20));
    assertEditor(
View Full Code Here

            "      rootPanel.setWidgetLeftWidth(button, 1.0, Unit.PX, 1.0, Unit.CM);",
            "      rootPanel.setWidgetTopHeight(button, 2.0, Unit.PX, 1.0, Unit.CM);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    frame.command_LOCATION(button, new Point(10, 20));
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "      rootPanel.setWidgetLeftWidth(button, 1.0, Unit.MM, 1.0, Unit.CM);",
            "      rootPanel.setWidgetTopHeight(button, 2.0, Unit.MM, 1.0, Unit.CM);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    frame.command_LOCATION(button, new Point(100, 50));
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "      rootPanel.setWidgetRightWidth(button, 1.0, Unit.PX, 100, Unit.PX);",
            "      rootPanel.setWidgetBottomHeight(button, 2.0, Unit.PX, 50, Unit.PX);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo box = getJavaInfoByName("button");
    frame.command_LOCATION(box, new Point(200, 150));
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "      rootPanel.setWidgetLeftRight(button, 100.0, Unit.PX, 200, Unit.PX);",
            "      rootPanel.setWidgetTopBottom(button, 100.0, Unit.PX, 150, Unit.PX);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo box = getJavaInfoByName("button");
    frame.command_LOCATION(box, new Point(200, 150));
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "      Button button = new Button();",
            "      rootPanel.add(button);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    frame.command_SIZE(
        button,
        new Dimension(200, 50),
View Full Code Here

            "      rootPanel.setWidgetLeftWidth(button, 0.0, Unit.PX, 100.0, Unit.PX);",
            "      rootPanel.setWidgetTopHeight(button, 0.0, Unit.PX, 50.0, Unit.PX);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    frame.command_SIZE(
        button,
        new Dimension(150, 75),
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.