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

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


            "      Button button = new Button();",
            "      panel.add(button, DockPanel.WEST);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    DockPanelInfo panel = (DockPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    // check that "Cell" property exists
    Property cellProperty;
    {
View Full Code Here


            "        panel.add(button_2, DockPanel.NORTH);",
            "      }",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    {
      DockPanelInfo panel = getJavaInfoByName("panel");
      doCopyPaste(panel, new PasteProcedure<WidgetInfo>() {
        public void run(WidgetInfo copy) throws Exception {
View Full Code Here

            "}");
    assertHierarchy(
        "{RootPanel.get()} {local-unique: rootPanel} {/RootPanel.get()/ /rootPanel.add(new MyComposite())/}",
        "  {new: test.client.MyComposite} {empty} {/rootPanel.add(new MyComposite())/}");
    // refresh()
    frame.refresh();
    assertNoErrors(frame);
  }
}
View Full Code Here

            "      ValueListBox valueListBox = new ValueListBox(IntegerRenderer.instance());",
            "      rootPanel.add(valueListBox);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    CompositeInfo valueListBox = (CompositeInfo) frame.getChildrenWidgets().get(0);
    Class<?> valueListBoxClass = valueListBox.getDescription().getComponentClass();
    assertTrue(ReflectionUtils.isSuccessorOf(
        valueListBoxClass,
        "com.google.gwt.user.client.ui.ValueListBox"));
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    // create
    CompositeInfo valuePicker = createJavaInfo("com.google.gwt.user.client.ui.ValueListBox");
    frame.command_CREATE2(valuePicker, null);
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "public class Test implements EntryPoint {",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    // create
    WidgetInfo widget = createJavaInfo(widgetClass);
    frame.command_CREATE2(widget, null);
    // check
    assertNoErrors(widget);
View Full Code Here

            "    Grid panel = new Grid(2, 3);",
            "    rootPanel.add(panel);",
            "    panel.setWidget(1, 2, new Button());",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    // prepare new Button, associate it with "panel"
    WidgetInfo newButton = createButton();
    panel.addChild(newButton);
View Full Code Here

            "    Grid panel = new Grid(2, 3);",
            "    rootPanel.add(panel);",
            "    panel.setWidget(1, 2, new Button());",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    // check CellConstraintsSupport
    CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
View Full Code Here

            "    rootPanel.add(panel);",
            "    panel.setWidget(0, 0, new Button('A'));",
            setAlignmentLine,
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
View Full Code Here

            "    rootPanel.add(panel);",
            "    panel.setWidget(0, 0, new Button('A'));",
            "    panel.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
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.