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

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.AnchorLayoutDataInfo


            "}");
    assertNoErrors(panel);
    assertInstanceOf(AnchorLayoutInfo.class, panel.getLayout());
    //
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    assertNotNull(anchorData);
    assertSame(Property.UNKNOWN_VALUE, anchorData.getAnchor());
    // AnchorLayoutData_Info always has "anchor" property
    Property property = anchorData.getPropertyByTitle("anchor");
    assertNotNull(property);
    assertFalse(property.isModified());
    // set value
    property.setValue("-50 30%");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
        "      Label label = new Label();",
        "      add(label, new AnchorLayoutData('-50 30%'));",
        "    }",
        "  }",
        "}");
    assertTrue(property.isModified());
    assertEquals("-50 30%", property.getValue());
    assertEquals("-50 30%", anchorData.getAnchor());
  }
View Full Code Here


            "      add(label);",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorWidth("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData('-50'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorWidth("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData(' 30%'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorWidth("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData('-50 30%'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorWidth("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label);",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorHeight("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData(' -50'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorHeight("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData('50%'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorHeight("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

            "      add(label, new AnchorLayoutData('50% -50'));",
            "    }",
            "  }",
            "}");
    WidgetInfo label = panel.getChildrenWidgets().get(0);
    AnchorLayoutDataInfo anchorData = AnchorLayoutInfo.getAnchorData(label);
    // set value
    anchorData.setAnchorHeight("-100");
    assertEditor(
        "public class Test extends Panel {",
        "  public Test() {",
        "    setLayout(new AnchorLayout());",
        "    {",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.layout.AnchorLayoutDataInfo

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.