Examples of command_BOUNDS()


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

            "  }",
            "}");
    refresh();
    WidgetInfo button = getJavaInfoByName("button");
    // set new size
    frame.command_BOUNDS(button, null, new Dimension(100, 50));
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

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

    assertHierarchy(
        "{RootPanel.get()} {local-unique: rootPanel} {/RootPanel.get()/ /rootPanel.add(panel)/ /rootPanel.add(button)/}",
        "  {new: com.google.gwt.user.client.ui.AbsolutePanel} {local-unique: panel} {/new AbsolutePanel()/ /rootPanel.add(panel)/}",
        "  {new: com.google.gwt.user.client.ui.Button} {local-unique: button} {/new Button()/ /rootPanel.add(button)/}");
    // set location
    frame.command_BOUNDS(button, new Point(50, 100), null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

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

        }
      }
    });
    // add component on RootPanel
    panel.command_CREATE2(widget, null);
    panel.command_BOUNDS(widget, new Point(100, 100), null);
    // remove "live" mark from RootPanel,
    // because only one instance of RootPanel exists, so we update it also for "main" hierarchy
    panel.getPropertyByTitle("title").setValue(null);
    // check for forced size
    {
View Full Code Here

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

            "com.smartgwt.client.widgets.form.DynamicForm",
            new ConstructorCreationSupport());
    {
      // drop Canvas on RootPanel
      panel.command_CREATE2(parentCanvas, null);
      panel.command_BOUNDS(parentCanvas, new Point(10, 10), new Dimension(700, 500));
      // broadcast for set widget as "live"
      parentCanvas.addBroadcastListener(new JavaInfoSetObjectAfter() {
        public void invoke(JavaInfo target, Object o) throws Exception {
          if (target == parentCanvas) {
            parentCanvas.removeBroadcastListener(this);
View Full Code Here

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

            "}");
    frame.refresh();
    // add new Button
    ComponentInfo newButton = createButton();
    frame.command_CREATE2(newButton, null);
    frame.command_BOUNDS(newButton, new Point(100, 50), new Dimension(200, 30));
    frame.refresh();
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
View Full Code Here

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

            "}");
    frame.refresh();
    //
    CompositeInfo cellBrowser = createJavaInfo("com.google.gwt.user.cellview.client.CellBrowser");
    frame.command_CREATE2(cellBrowser, null);
    frame.command_BOUNDS(cellBrowser, new Point(10, 10), null);
    //
    assertEditor(
        "import com.google.gwt.user.cellview.client.CellBrowser;",
        "import com.google.gwt.view.client.TreeViewModel;",
        "import com.google.gwt.view.client.AbstractDataProvider;",
View Full Code Here

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

            "}");
    frame.refresh();
    //
    CompositeInfo cellTree = createJavaInfo("com.google.gwt.user.cellview.client.CellTree");
    frame.command_CREATE2(cellTree, null);
    frame.command_BOUNDS(cellTree, new Point(10, 10), null);
    //
    assertEditor(
        "import com.google.gwt.user.cellview.client.CellTree;",
        "import com.google.gwt.view.client.TreeViewModel;",
        "import com.google.gwt.view.client.AbstractDataProvider;",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_BOUNDS()

        "}");
    form.refresh();
    // set location
    FormItemInfo formItem = form.getItems().get(0);
    Point location = new Point(30, 20);
    form.command_BOUNDS(formItem, location, null);
    form.refresh();
    assertThat(formItem.getBounds().getLocation()).isEqualTo(location);
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_BOUNDS()

        "    textItem.setTop(20);",
        "    setFields(new FormItem[] { textItem});",
        "  }",
        "}");
    // set size
    form.command_BOUNDS(formItem, null, new Dimension(60, 50));
    form.refresh();
    assertThat(formItem.getBounds().getSize()).isEqualTo(new Dimension(60, 50));
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_BOUNDS()

        "    textItem.setTop(20);",
        "    setFields(new FormItem[] { textItem});",
        "  }",
        "}");
    // change location
    form.command_BOUNDS(formItem, new Point(10, 10), null);
    form.refresh();
    assertThat(formItem.getBounds().getLocation()).isEqualTo(new Point(10, 10));
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
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.