Examples of IntValue


Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

    assertThat(buttonBarBounds.width).isGreaterThan(400);
    assertThat(buttonBarBounds.height).isGreaterThan(25);
    assertThat(buttonBarBounds.x).isEqualTo(5);
    Integer expected =
        Expectations.get(300 - 5 - buttonBarBounds.height, new IntValue[]{
            new IntValue("Flanker-Windows", new Integer(300 - 5 - buttonBarBounds.height)),
            new IntValue("SABLIN-AA", new Integer(300 - 6 - buttonBarBounds.height))});
    assertThat(buttonBarBounds.y).isEqualTo(expected);
  }
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

    // "button" bounds
    {
      WidgetInfo button = getObjectByName("button");
      Rectangle bounds = button.getBounds();
      int widthGreatThat =
          Expectations.get(75, new IntValue[]{new IntValue("flanker-windows", 70)});
      assertThat(bounds.width).isGreaterThan(widthGreatThat);
      assertThat(bounds.height).isEqualTo(300);
    }
  }
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo formItem = form.getItems().get(0);
    Integer width = Expectations.get(150, new IntValue[]{new IntValue("flanker-desktop", 146)});
    assertThat(formItem.getModelBounds()).isEqualTo(new Rectangle(28, 0, width, 22));
  }
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo formItem = form.getItems().get(0);
    Integer left = Expectations.get(28, new IntValue[]{new IntValue("flanker-desktop", 100)});
    Integer width = Expectations.get(150, new IntValue[]{new IntValue("flanker-desktop", 146)});
    assertThat(formItem.getModelBounds()).isEqualTo(new Rectangle(left, 0, width, 22));
  }
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

    SectionStackSectionInfo section_1 = sections.get(0);
    SectionStackSectionInfo section_2 = sections.get(1);
    // check section 1
    {
      Integer sectionTop =
          Expectations.get(200, new IntValue[]{new IntValue("flanker-desktop", 201)});
      Integer sectionHeight =
          Expectations.get(40, new IntValue[]{new IntValue("flanker-desktop", 39)});
      assertThat(section_1.getModelBounds()).isEqualTo(
          new Rectangle(0, sectionTop, width, sectionHeight));
      List<CanvasInfo> canvases = section_1.getCanvases();
      assertThat(canvases.size()).isEqualTo(1);
      Integer canvasHeight =
          Expectations.get(14, new IntValue[]{new IntValue("flanker-desktop", 13)});
      assertThat(canvases.get(0).getModelBounds()).isEqualTo(
          new Rectangle(1, -1, width - 2, canvasHeight));
    }
    // check section 2
    {
      Integer sectionTop =
          Expectations.get(30, new IntValue[]{new IntValue("flanker-desktop", 31)});
      assertThat(section_2.getCanvases().size()).isEqualTo(3);
      assertThat(section_2.getModelBounds()).isEqualTo(new Rectangle(0, sectionTop, width, 170));
      List<CanvasInfo> canvases = section_2.getCanvases();
      assertThat(canvases.size()).isEqualTo(3);
      assertThat(canvases.get(0).getModelBounds()).isEqualTo(
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

    assertThat(sections.size()).isEqualTo(2);
    // check section 1
    SectionStackSectionInfo sectionInfo_1 = sections.get(0);
    {
      Integer sectionHeight =
          Expectations.get(40, new IntValue[]{new IntValue("flanker-desktop", 39)});
      assertThat(sectionInfo_1.getModelBounds()).isEqualTo(
          new Rectangle(0, 0, width, sectionHeight));
      List<CanvasInfo> canvases = sectionInfo_1.getCanvases();
      assertThat(canvases.size()).isEqualTo(1);
      Integer canvasHeight =
          Expectations.get(14, new IntValue[]{new IntValue("flanker-desktop", 13)});
      assertThat(canvases.get(0).getModelBounds()).isEqualTo(
          new Rectangle(1, 26, width - 2, canvasHeight));
    }
    // check section 2
    SectionStackSectionInfo sectionInfo_2 = sections.get(1);
    {
      Integer sectionHeight =
          Expectations.get(40, new IntValue[]{new IntValue("flanker-desktop", 39)});
      assertThat(sectionInfo_2.getModelBounds()).isEqualTo(
          new Rectangle(0, sectionHeight, width, 170));
      List<CanvasInfo> canvases = sectionInfo_2.getCanvases();
      assertThat(canvases.size()).isEqualTo(3);
      assertThat(canvases.get(0).getModelBounds()).isEqualTo(
View Full Code Here

Examples of org.eclipse.wb.tests.designer.Expectations.IntValue

      ColumnInfo column_2 = columns.get(1);
      assertThat(column_2.getModelBounds()).isEqualTo(new Rectangle(MCW, 0, MCW, height));
    }
    {
      ColumnInfo column_3 = columns.get(2);
      int width = Expectations.get(210, new IntValue[]{new IntValue("flanker-desktop", 210)});
      assertThat(column_3.getModelBounds()).isEqualTo(new Rectangle(2 * MCW, 0, width, height));
    }
  }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.literal.IntValue

    return caseBlock(value);
  }

  @Override
  public BlockBuilder<CaseBlockBuilder> case_(int value) {
    IntValue val = (IntValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.literal.IntValue

    return caseBlock(value);
  }

  @Override
  public BlockBuilder<CaseBlockBuilder> case_(int value) {
    IntValue val = (IntValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.codegen.literal.IntValue

    return caseBlock(value);
  }

  @Override
  public BlockBuilder<CaseBlockBuilder> case_(int value) {
    IntValue val = (IntValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
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.