Package com.google.gdt.eclipse.designer.smart.model

Examples of com.google.gdt.eclipse.designer.smart.model.SectionStackInfo


  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_parse_this() throws Exception {
    SectionStackInfo stack =
        parseJavaInfo(compiledSource(new String[]{
            "public class Test extends SectionStack {",
            "  public Test() {",
            "    //sectionsPlace",
            "  }",
            "}"}, "this"));
    stack.getTopBoundsSupport().setSize(270, 240);
    stack.refresh();
    assertThat(stack.getWidgets()).isEmpty();
    // check Sections
    List<SectionStackSectionInfo> sections = stack.getSections();
    assertThat(sections.size()).isEqualTo(2);
    SectionStackSectionInfo section_1 = sections.get(0);
    assertThat(section_1.getCanvases().size()).isEqualTo(1);
    SectionStackSectionInfo section_2 = sections.get(1);
    assertThat(section_2.getCanvases().size()).isEqualTo(3);
View Full Code Here


            "    stack.setRect(39, 34, 270, 240);",
            "    canvas.draw();",
            "  }",
            "}"}, "stack"));
    canvas.refresh();
    SectionStackInfo stack = (SectionStackInfo) canvas.getWidgets().get(0);
    assertThat(stack.getWidgets()).isEmpty();
    // check Sections
    List<SectionStackSectionInfo> sections = stack.getSections();
    assertThat(sections.size()).isEqualTo(2);
    SectionStackSectionInfo section_1 = sections.get(0);
    assertThat(section_1.getCanvases().size()).isEqualTo(1);
    SectionStackSectionInfo section_2 = sections.get(1);
    assertThat(section_2.getCanvases().size()).isEqualTo(3);
View Full Code Here

            "    rootPanel.add(stack, 41, 42);",
            "    stack.setSize('270px', '240px');",
            "  }",
            "}"}, "stack"));
    rootPanel.refresh();
    SectionStackInfo stack = (SectionStackInfo) rootPanel.getChildrenWidgets().get(0);
    assertThat(stack.getWidgets()).isEmpty();
    // check Sections
    List<SectionStackSectionInfo> sections = stack.getSections();
    assertThat(sections.size()).isEqualTo(2);
    SectionStackSectionInfo section_1 = sections.get(0);
    assertThat(section_1.getCanvases().size()).isEqualTo(1);
    SectionStackSectionInfo section_2 = sections.get(1);
    assertThat(section_2.getCanvases().size()).isEqualTo(3);
View Full Code Here

            "    stack.setRect(10, 10, 270, 240);",
            "    canvas.draw();",
            "  }",
            "}"}, "stack"));
    canvas.refresh();
    SectionStackInfo stack = (SectionStackInfo) canvas.getWidgets().get(0);
    stack.getPropertyByTitle("reverseOrder").setValue(true);
    // check Sections
    int width = stack.getModelBounds().width;
    List<SectionStackSectionInfo> sections = stack.getSections();
    assertThat(sections.size()).isEqualTo(2);
    SectionStackSectionInfo section_1 = sections.get(0);
    SectionStackSectionInfo section_2 = sections.get(1);
    // check section 1
    {
View Full Code Here

            "    rootPanel.add(stack, 41, 42);",
            "    stack.setSize('270px', '200px');",
            "  }",
            "}");
    rootPanel.refresh();
    SectionStackInfo stack = (SectionStackInfo) rootPanel.getChildrenWidgets().get(0);
    assertThat(stack.getChildrenJava()).isEmpty();
    // create new Section
    FlowContainer flowContainer = new FlowContainerFactory(stack, true).get().get(0);
    {
      assertFalse(flowContainer.isHorizontal());
    }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.smart.model.SectionStackInfo

Copyright © 2018 www.massapicom. 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.