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);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    assertNotNull(PropertyUtils.getByPath(button, "Cell"));
  }
View Full Code Here


            "    RootPanel rootPanel = RootPanel.get();",
            "    HorizontalPanel panel = new HorizontalPanel();",
            "    rootPanel.add(panel);",
            "  }",
            "}");
    frame.refresh();
    HorizontalPanelInfo panel = (HorizontalPanelInfo) frame.getChildrenWidgets().get(0);
    //
    WidgetInfo newButton = createButton();
    panel.command_CREATE2(newButton, null);
    assertEditor(
View Full Code Here

            "      Button button_2 = new Button();",
            "      panel.add(button_2);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    HorizontalPanelInfo panel = (HorizontalPanelInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    //
    panel.command_MOVE2(button_2, button_1);
View Full Code Here

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

            "    RootPanel rootPanel = RootPanel.get();",
            "    PushButton button = new PushButton('My text');",
            "    rootPanel.add(button);",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    hasFace(button, "UpFace");
    hasFace(button, "UpDisabledFace");
    hasFace(button, "UpHoveringFace");
View Full Code Here

            "    PushButton button = new PushButton('My text');",
            "    rootPanel.add(button);",
            "    button.getDownFace().setText('down text');",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    button.getPropertyByTitle("DownFace").setValue(Property.UNKNOWN_VALUE);
    assertEditor(
        "public class Test implements EntryPoint {",
View Full Code Here

            "      button.getUpFace().setText('the text');",
            "      rootPanel.add(button);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    Property upProperty = button.getPropertyByTitle("UpFace");
    Property[] upProperties = getSubProperties(upProperty);
    // check existing "text" property
View Full Code Here

            "    RootPanel rootPanel = RootPanel.get();",
            "    rootPanel.add(m_myBundle.first().createImage());",
            "    rootPanel.add(m_myBundle.second().createImage());",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    // prepare Expression's
    List<WidgetInfo> images = frame.getChildrenWidgets();
    Expression firstExpression =
        ((MethodInvocation) images.get(0).getCreationSupport().getNode()).getExpression();
View Full Code Here

            "  private static final MyImageBundle m_myBundle = GWT.create(MyImageBundle.class);",
            "  public void onModuleLoad() {",
            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    // prepare prototype
    ImageBundlePrototypeDescription prototype;
    {
      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
View Full Code Here

            "      Image image = m_myBundle.first().createImage();",
            "      rootPanel.add(image);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    assertHierarchy(
        "{RootPanel.get()} {local-unique: rootPanel} {/RootPanel.get()/ /rootPanel.add(image)/}",
        "  {opaque} {local-unique: image} {/m_myBundle.first().createImage()/ /rootPanel.add(image)/}",
        "  {com.google.gdt.eclipse.designer.model.widgets.ImageBundleContainerInfo}",
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.