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

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.PanelInfo.refresh()


            "      PaddedPanel paddedPanel = new PaddedPanel(content, 10);",
            "      add(paddedPanel);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(paddedPanel)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.PaddedPanel} {local-unique: paddedPanel} {/new PaddedPanel(content, 10)/ /add(paddedPanel)/}",
View Full Code Here


            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new RowLayout());",
            "  }",
            "}");
    panel.refresh();
    //
    PaddedPanelInfo paddedPanel =
        (PaddedPanelInfo) createWidget("com.gwtext.client.widgets.PaddedPanel");
    panel.getLayout().command_CREATE(paddedPanel, null);
    assertEditor(
View Full Code Here

        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(paddedPanel)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.PaddedPanel} {local-unique: paddedPanel} {/new PaddedPanel(new Panel('New Panel'), 10, 10, 10, 10)/ /add(paddedPanel)/}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}",
        "    {new: com.gwtext.client.widgets.Panel} {empty} {/new PaddedPanel(new Panel('New Panel'), 10, 10, 10, 10)/}");
    panel.refresh();
    // "paddedPanel" can be deleted
    assertTrue(paddedPanel.canDelete());
    assertFalse(paddedPanel.getContent().canDelete());
    paddedPanel.delete();
    assertEditor(
View Full Code Here

            "}");
    assertHierarchy(
        "{new: com.gwtext.client.widgets.Panel} {local-unique: panel} {/new Panel()/ /new Viewport(panel)/}",
        "  {implicit-layout: default} {implicit-layout} {}");
    //
    panel.refresh();
    assertNoErrors(panel);
    {
      Rectangle bounds = panel.getBounds();
      assertThat(bounds.width).isEqualTo(450);
      assertThat(bounds.height).isEqualTo(300);
View Full Code Here

            "}");
    assertHierarchy(
        "{new: com.gwtext.client.widgets.Panel} {local-unique: panel} {/new Panel()/ /new Viewport(panel)/ /rootPanel.add(panel)/}",
        "  {implicit-layout: default} {implicit-layout} {}");
    //
    panel.refresh();
    assertNoErrors(panel);
    {
      Rectangle bounds = panel.getBounds();
      assertThat(bounds.width).isEqualTo(450);
      assertThat(bounds.height).isEqualTo(300);
View Full Code Here

            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new FitLayout());",
            "  }",
            "}");
    panel.refresh();
    FitLayoutInfo layout = (FitLayoutInfo) panel.getLayout();
    // create Label
    WidgetInfo label = createJavaInfo("com.gwtext.client.widgets.form.Label");
    layout.command_CREATE(label);
    assertEditor(
View Full Code Here

            "      Label label = new Label();",
            "      add(label);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    PanelInfo fitPanel = (PanelInfo) panel.getChildrenWidgets().get(0);
    WidgetInfo label = panel.getChildrenWidgets().get(1);
    FitLayoutInfo layout = (FitLayoutInfo) fitPanel.getLayout();
    // reparent Label
    layout.command_ADD(label);
View Full Code Here

            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new AccordionLayout());",
            "  }",
            "}");
    panel.refresh();
    AccordionLayoutInfo layout = (AccordionLayoutInfo) panel.getLayout();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    PanelInfo newPanel = createJavaInfo("com.gwtext.client.widgets.Panel", null);
    flowContainer.command_CREATE(newPanel, null);
View Full Code Here

            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new AccordionLayout());",
            "  }",
            "}");
    panel.refresh();
    AccordionLayoutInfo layout = (AccordionLayoutInfo) panel.getLayout();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    PanelInfo newPanel = createJavaInfo("com.gwtext.client.widgets.Panel", "empty");
    flowContainer.command_CREATE(newPanel, null);
View Full Code Here

            "      Panel panel_3 = new Panel('CCC');",
            "      add(panel_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    List<WidgetInfo> panels = panel.getChildrenWidgets();
    // initially "panel_1" is expanded
    assertExpanded(panel, 0);
    // notify about "panel_2"
    {
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.