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

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.PaddedPanelInfo


        "  {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)/}",
        "    {new: com.gwtext.client.widgets.Panel} {local-unique: content} {/new Panel()/ /new PaddedPanel(content, 10)/}",
        "      {implicit-layout: default} {implicit-layout} {}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}");
    PaddedPanelInfo paddedPanel = (PaddedPanelInfo) panel.getChildrenWidgets().get(0);
    PanelInfo content = paddedPanel.getContent();
    assertFalse(content.canDelete());
    assertTrue(paddedPanel.canDelete());
  }
View Full Code Here


            "    setLayout(new RowLayout());",
            "  }",
            "}");
    panel.refresh();
    //
    PaddedPanelInfo paddedPanel =
        (PaddedPanelInfo) createWidget("com.gwtext.client.widgets.PaddedPanel");
    panel.getLayout().command_CREATE(paddedPanel, null);
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new RowLayout());",
        "    {",
        "      PaddedPanel paddedPanel = new PaddedPanel(new Panel('New Panel'), 10, 10, 10, 10);",
        "      add(paddedPanel);",
        "    }",
        "  }",
        "}");
    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(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(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new RowLayout());",
        "  }",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.widgets.PaddedPanelInfo

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.