assertEquals(0, boxData.getMarginBottom());
assertEquals(0, boxData.getMarginLeft());
}
public void test_marginProperties_get() throws Exception {
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new VBoxLayout());",
" {",
" 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());
assertEquals(3, boxData.getPropertyByTitle("margin-bottom").getValue());