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

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.StackPanelInfo.WidgetHandle


    WidgetInfo button_2 = panel.getChildrenWidgets().get(1);
    //
    List<WidgetHandle> handles = panel.getWidgetHandles();
    assertThat(handles).hasSize(2);
    {
      WidgetHandle handle = handles.get(0);
      assertSame(button_1, handle.getWidget());
      assertThat(handle.getBounds().x).isEqualTo(0);
      assertThat(handle.getBounds().y).isEqualTo(0);
      assertThat(handle.getBounds().width).isGreaterThan(390);
      assertThat(handle.getBounds().height).isGreaterThan(20);
    }
    {
      WidgetHandle handle = handles.get(1);
      assertSame(button_2, handle.getWidget());
      assertThat(handle.getBounds().x).isEqualTo(0);
      assertThat(handle.getBounds().y).isGreaterThan(250);
      assertThat(handle.getBounds().width).isGreaterThan(390);
      assertThat(handle.getBounds().height).isGreaterThan(20);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.panels.StackPanelInfo.WidgetHandle

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.