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

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.LayoutContainerInfo.refresh()


            "  public Test() {",
            "    FlowLayout flowLayout = new FlowLayout();",
            "    setLayout(flowLayout);",
            "  }",
            "}");
    container.refresh();
    final Property property = container.getLayout().getPropertyByTitle("margins");
    // initially no margins
    assertFalse(property.isModified());
    assertEquals(null, getPropertyText(property));
    // set value
View Full Code Here


        "  {new: com.extjs.gxt.ui.client.widget.layout.FormLayout} {empty} {/setLayout(new FormLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.form.SliderField} {local-unique: sliderField} {/new SliderField(slider)/ /add(sliderField)/}",
        "    {new: com.extjs.gxt.ui.client.widget.Slider} {local-unique: slider} {/new Slider()/ /new SliderField(slider)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.FormData} {virtual-layout-data} {}");
    //
    container.refresh();
    assertNoErrors(container);
    // SliderField has only one constructor
    {
      SliderFieldInfo sliderField = getJavaInfoByName("sliderField");
      List<ConstructorDescription> constructors = sliderField.getDescription().getConstructors();
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new FormLayout());",
            "  }",
            "}");
    container.refresh();
    FormLayoutInfo layout = (FormLayoutInfo) container.getLayout();
    // add new SliderField
    final FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    ExecutionUtils.run(container, new RunnableEx() {
      public void run() throws Exception {
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new FillLayout(Orientation.HORIZONTAL));",
            "  }",
            "}");
    container.refresh();
    FillLayoutInfo layout = (FillLayoutInfo) container.getLayout();
    assertTrue(layout.isHorizontal());
  }

  /**
 
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new FillLayout(Orientation.VERTICAL));",
            "  }",
            "}");
    container.refresh();
    FillLayoutInfo layout = (FillLayoutInfo) container.getLayout();
    assertFalse(layout.isHorizontal());
  }

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

            "      Button button = new Button();",
            "      add(button, new FillData(1, 2, 3, 4));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FillDataInfo fillData = FillLayoutInfo.getFillData(button);
    // check margins
    assertSame(Property.UNKNOWN_VALUE, fillData.getMarginAll());
    assertEquals(1, fillData.getMarginTop());
View Full Code Here

            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    FillDataInfo fillData = FillLayoutInfo.getFillData(button);
    // check margins
    assertEquals(0, fillData.getMarginAll());
    assertEquals(0, fillData.getMarginTop());
View Full Code Here

            "      add(button, new AbsoluteData(10, 20));",
            "      button.setSize(100, 30);",
            "    }",
            "  }",
            "}");
    container.refresh();
    AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
    setupSelectionActions(layout);
    WidgetInfo button = getJavaInfoByName("button");
    // perform alignment
    alignWidgets("Center horizontally in window", button);
View Full Code Here

            "      Text text = new Text();",
            "      add(text, new AbsoluteData(150, 100));",
            "    }",
            "  }",
            "}");
    container.refresh();
    AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) container.getLayout();
    ComponentInfo text = container.getChildren(ComponentInfo.class).get(1);
    // Bounds
    layout.command_BOUNDS(text, new Point(5, 5), null);
    assertEditor(
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new FitLayout());",
            "  }",
            "}");
    container.refresh();
    FitLayoutInfo layout = (FitLayoutInfo) container.getLayout();
    //
    ComponentInfo newButton = createButton();
    layout.command_CREATE(newButton, null);
    assertEditor(
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.