Examples of HorizontalSplitPanelInfo


Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

        "      panel.setRightWidget(button);",
        "    }",
        "  }",
        "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    //
    assertEquals(null, panel.getEmptyRegion());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

        "      panel.setRightWidget(button_2);",
        "    }",
        "  }",
        "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo button_1 = panel.getChildrenWidgets().get(0);
    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    // check title decorations
    {
      String title = ObjectsLabelProvider.INSTANCE.getText(button_1);
      assertThat(title).startsWith("left - ");
    }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
        "  }",
        "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    //
    WidgetInfo newButton = createButton();
    panel.command_CREATE(newButton, "left");
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

        "      panel.setLeftWidget(button);",
        "    }",
        "  }",
        "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    // initial state
    WidgetInfo button = panel.getLeftWidget();
    assertNull(panel.getRightWidget());
    // do move
    panel.command_MOVE(button, "right");
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
        "    {",
        "      Button button = new Button();",
        "      panel.setRightWidget(button);",
        "    }",
        "  }",
        "}");
    assertNull(panel.getLeftWidget());
    assertSame(button, panel.getRightWidget());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

        "      panel.setRightWidget(rightButton);",
        "    }",
        "  }",
        "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    WidgetInfo leftButton = getJavaInfoByName("leftButton");
    WidgetInfo rightButton = getJavaInfoByName("rightButton");
    //
    panel.command_MOVE(rightButton, leftButton);
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

            "      add(button);",
            "    }",
            "  }",
            "}");
    refresh();
    HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
    // initial state
    WidgetInfo button = frame.getChildrenWidgets().get(1);
    assertNull(panel.getLeftWidget());
    assertNull(panel.getRightWidget());
    // do move
    panel.command_MOVE(button, "right");
    assertEditor(
        "public class Test extends FlowPanel {",
        "  public Test() {",
        "    HorizontalSplitPanel panel = new HorizontalSplitPanel();",
        "    add(panel);",
        "    {",
        "      Button button = new Button();",
        "      panel.setRightWidget(button);",
        "      button.setSize('100%', '100%');",
        "    }",
        "  }",
        "}");
    assertNull(panel.getLeftWidget());
    assertSame(button, panel.getRightWidget());
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.HorizontalSplitPanelInfo

            "  }",
            "}");
    refresh();
    // do copy/paste
    {
      HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
      doCopyPaste(panel, new PasteProcedure<WidgetInfo>() {
        public void run(WidgetInfo copy) throws Exception {
          flowContainer_CREATE(frame, copy, null);
        }
      });
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.