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, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    assertEquals(1, flowData.getMarginTop());
    assertEquals(2, flowData.getMarginRight());
View Full Code Here


            "      Button button = new Button();",
            "      add(button, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    flowData.setMarginTop(10);
    flowData.setMarginRight(20);
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(1));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    flowData.setMarginRight(20);
    assertEditor(
View Full Code Here

            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    flowData.setMarginRight(20);
    assertEditor(
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // check margins
    assertEquals(1, flowData.getPropertyByTitle("margin-top").getValue());
    assertEquals(2, flowData.getPropertyByTitle("margin-right").getValue());
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // set margins
    flowData.getPropertyByTitle("margin-top").setValue(10);
    flowData.getPropertyByTitle("margin-right").setValue(20);
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // no common margin
    assertSame(Property.UNKNOWN_VALUE, flowData.getMarginAll());
    {
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(5, 5, 5, 5));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // no common margin
    assertEquals(5, flowData.getMarginAll());
    {
View Full Code Here

            "      Button button = new Button();",
            "      add(button, new FlowData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    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

            "      Button button = new Button();",
            "      add(button, new FlowData(10));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FlowDataInfo flowData = FlowLayoutInfo.getFlowData(button);
    // initial state
    assertEquals(10, flowData.getPropertyByTitle("margin-all").getValue());
    // remove margins
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.