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

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


            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    flowData.getPropertyByTitle("margin-all").setValue(10);
    assertEditor(
View Full Code Here


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

            "      Button button = new Button();",
            "      add(button, new HBoxLayoutData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    HBoxLayoutDataInfo boxData = HBoxLayoutInfo.getHBoxData(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);
    HBoxLayoutDataInfo boxData = HBoxLayoutInfo.getHBoxData(button);
    // check margins
    assertEquals(0, boxData.getMarginTop());
    assertEquals(0, boxData.getMarginRight());
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new HBoxLayoutData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    HBoxLayoutDataInfo boxData = HBoxLayoutInfo.getHBoxData(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 HBoxLayoutData());",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    HBoxLayoutDataInfo boxData = HBoxLayoutInfo.getHBoxData(button);
    // set margin
    boxData.setMarginTop(10);
    assertEditor(
View Full Code Here

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

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

            "      Button button = new Button();",
            "      add(button, new TableData());",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    Activator.getDefault().getPreferenceStore().setValue(
        com.google.gdt.eclipse.designer.preferences.IPreferenceConstants.P_LAYOUT_DATA_NAME_TEMPLATE,
        template);
    TableLayoutInfo.getTableData(button).getPropertyByTitle("margin").setValue(5);
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new TableLayout(1));",
            "  }",
            "}");
    panel.refresh();
    //
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    assertThat(gridInfo.getRowCount()).isZero();
    assertThat(gridInfo.getRowIntervals()).isEmpty();
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.