Package com.google.gdt.eclipse.designer.model.widgets.panels

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.DockLayoutPanelInfo.refresh()


            "      Button button_5 = new Button();",
            "      add(button_5);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    {
      WidgetInfo button_1 = getJavaInfoByName("button_1");
      assertEquals(1.0, getSize(button_1), 0.001);
    }
    {
View Full Code Here


            "      Button button = new Button();",
            "      addWest(button, 20);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    WidgetInfo button = getJavaInfoByName("button");
    assertEquals(20.0, getSize(button), 0.001);
  }
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 1.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    setSize(button, 2.52);
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "public class Test extends DockLayoutPanel {",
            "  public Test() {",
            "    super(Unit.PX);",
            "  }",
            "}");
    panel.refresh();
    //
    double units = panel.getSizeInUnits(100, false);
    assertThat(units).isEqualTo(100.0, Delta.delta(0.001));
  }
View Full Code Here

            "public class Test extends DockLayoutPanel {",
            "  public Test() {",
            "    super(Unit.CM);",
            "  }",
            "}");
    panel.refresh();
    //
    double units = panel.getSizeInUnits(100, false);
    assertThat(units).isGreaterThan(2.0).isLessThan(3.0);
  }
View Full Code Here

            "public class Test extends DockLayoutPanel {",
            "  public Test() {",
            "    super(Unit.PX);",
            "  }",
            "}");
    panel.refresh();
    //
    assertEquals("100.0px", panel.getUnitSizeTooltip(100.0));
  }

  /**
 
View Full Code Here

            "public class Test extends DockLayoutPanel {",
            "  public Test() {",
            "    super(Unit.CM);",
            "  }",
            "}");
    panel.refresh();
    //
    assertEquals("3.5cm", panel.getUnitSizeTooltip(3.512));
  }

  ////////////////////////////////////////////////////////////////////////////
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 0.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setReasonableSize(button);
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 0.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setReasonableSize(button);
    assertEditor(
        "public class Test extends DockLayoutPanel {",
View Full Code Here

            "      Button button = new Button();",
            "      addWest(button, 0.0);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    WidgetInfo button = getJavaInfoByName("button");
    //
    panel.setReasonableSize(button);
    assertEditor(
        "public class Test extends DockLayoutPanel {",
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.