////////////////////////////////////////////////////////////////////////////
/**
* Test for {@link AbsoluteLayoutAlignmentSupport}.
*/
public void test_alignmentActions_LEFT() throws Exception {
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new AbsoluteLayout());",
" {",
" Button button_1 = new Button();",
" add(button_1, new AbsoluteData(10, 20));",
" }",
" {",
" Button button_2 = new Button();",
" add(button_2, new AbsoluteData(30, 100));",
" }",
" }",
"}");
container.refresh();
AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
setupSelectionActions(layout);
WidgetInfo button_1 = getJavaInfoByName("button_1");
WidgetInfo button_2 = getJavaInfoByName("button_2");
// perform alignment
alignWidgets("Align left edges", button_1, button_2);