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

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.ComponentInfo


            "}");
    container.refresh();
    CardLayoutInfo layout = (CardLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
View Full Code Here


            "  }",
            "}");
    // copy "boxA"
    {
      // select "boxA"
      ComponentInfo boxA = getJavaInfoByName("boxA");
      canvas.select(boxA);
      // do copy
      IAction copyAction = getCopyAction();
      assertTrue(copyAction.isEnabled());
      copyAction.run();
View Full Code Here

            "      Box box = new Box();",
            "      add(box, new AbsoluteData(30, 40));",
            "    }",
            "  }",
            "}");
    ComponentInfo box = getJavaInfoByName("box");
    // move
    canvas.sideMode().beginMove(box);
    canvas.target(container).inX(50).inY(80).drag();
    canvas.endDrag();
    assertEditor(
View Full Code Here

            "      add(inner, new AbsoluteData(20, 100));",
            "      inner.setSize(200, 150);",
            "    }",
            "  }",
            "}");
    ComponentInfo box = getJavaInfoByName("box");
    // move
    canvas.sideMode().beginMove(box);
    canvas.target(container).in(50, 20).drag();
    canvas.endDrag();
    assertEditor(
View Full Code Here

            "  public Test() {",
            "    setLayout(new AbsoluteLayout());",
            "  }",
            "}");
    // create Box
    ComponentInfo newBox = loadCreationBox();
    // use tree
    tree.moveOn(container);
    tree.assertFeedback_on(container);
    tree.click();
    assertEditor(
View Full Code Here

            "  }",
            "}");
    // copy "boxA"
    {
      // select "boxA"
      ComponentInfo boxA = getJavaInfoByName("boxA");
      canvas.select(boxA);
      // do copy
      IAction copyAction = getCopyAction();
      assertTrue(copyAction.isEnabled());
      copyAction.run();
View Full Code Here

        "      Box boxB = new Box();",
        "      add(boxB, new AbsoluteData(10, 100));",
        "    }",
        "  }",
        "}");
    ComponentInfo boxA = getJavaInfoByName("boxA");
    ComponentInfo boxB = getJavaInfoByName("boxB");
    // use tree
    tree.startDrag(boxB);
    tree.dragBefore(boxA);
    tree.assertFeedback_before(boxA);
    tree.endDrag();
View Full Code Here

            "      add(inner, new AbsoluteData(20, 100));",
            "      inner.setSize(200, 150);",
            "    }",
            "  }",
            "}");
    ComponentInfo box = getJavaInfoByName("box");
    // use tree
    tree.startDrag(box);
    tree.dragOn(container);
    tree.assertFeedback_on(container);
    tree.endDrag();
View Full Code Here

            "  }",
            "}");
    container.refresh();
    TableRowLayoutInfo layout = (TableRowLayoutInfo) container.getLayout();
    //
    ComponentInfo newButton = createButton();
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
View Full Code Here

            "    }",
            "  }",
            "}");
    container.refresh();
    AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
    ComponentInfo text = container.getChildren(ComponentInfo.class).get(1);
    // Bounds
    layout.command_BOUNDS(text, new Point(5, 5), null);
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gxt.model.widgets.ComponentInfo

Copyright © 2018 www.massapicom. 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.