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

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo.refresh()


            "      data.setFlex(2.3);",
            "      add(button, data);",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    // current value
    assertEquals(2, boxData.getFlex());
    // set new value
View Full Code Here


            "      Button button = new Button();",
            "      add(button, new VBoxLayoutData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    // check margins
    assertEquals(1, boxData.getMarginTop());
    assertEquals(2, boxData.getMarginRight());
View Full Code Here

            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    // check margins
    assertEquals(0, boxData.getMarginTop());
    assertEquals(0, boxData.getMarginRight());
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new VBoxLayoutData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    // check margins
    assertEquals(1, boxData.getPropertyByTitle("margin-top").getValue());
    assertEquals(2, boxData.getPropertyByTitle("margin-right").getValue());
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new VBoxLayoutData());",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    // set margin
    boxData.setMarginTop(10);
    assertEditor(
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new VBoxLayoutData());",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    Property marginAllProperty = boxData.getPropertyByTitle("margin-all");
    // set margin
    marginAllProperty.setValue(10);
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new VBoxLayoutData(10, 0, 0, 0));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    VBoxLayoutDataInfo boxData = VBoxLayoutInfo.getVBoxData(button);
    Property marginTopProperty = boxData.getPropertyByTitle("margin-top");
    // set margin
    marginTopProperty.setValue(0);
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FillData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FillDataInfo fillData = FillLayoutInfo.getFillData(button);
    // check margins
    assertSame(Property.UNKNOWN_VALUE, fillData.getPropertyByTitle("margin-all").getValue());
    assertEquals(1, fillData.getPropertyByTitle("margin-top").getValue());
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new CenterLayout());",
            "  }",
            "}");
    container.refresh();
    CenterLayoutInfo layout = (CenterLayoutInfo) container.getLayout();
    //
    ComponentInfo newButton = createButton();
    layout.command_CREATE(newButton, null);
    assertEditor(
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new CenterLayout());",
            "  }",
            "}");
    container.refresh();
    CenterLayoutInfo layout = (CenterLayoutInfo) container.getLayout();
    SimpleContainer simpleContainer = new SimpleContainerFactory(layout, true).get().get(0);
    // empty initially
    assertTrue(simpleContainer.isEmpty());
    // add new Button
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.