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

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


            "      Text label_4 = new Text('A');",
            "      add(label_4);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(3, gridInfo.getColumnCount());
    assertEquals(2, gridInfo.getRowCount());
View Full Code Here


            "      add(button);",
            "    }",
            "    add(new Text());",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    WidgetInfo button = panel.getWidgets().get(0);
    //
    assertEquals(2, gridInfo.getColumnCount());
View Full Code Here

            "      Text label = new Text('A');",
            "      add(label);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(2, gridInfo.getColumnCount());
    assertEquals(2, gridInfo.getRowCount());
View Full Code Here

            "      Button button = new Button('1');",
            "      add(button);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
View Full Code Here

            "      Button button = new Button('1');",
            "      add(button);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    WidgetInfo button = panel.getWidgets().get(0);
    TableDataInfo tableData = TableLayoutInfo.getTableData(button);
    // check initial TableLayoutData
    {
View Full Code Here

            "// filler filler filler",
            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "  }",
            "}");
    container.refresh();
    // set FormLayout
    FormLayoutInfo layout = createJavaInfo("com.extjs.gxt.ui.client.widget.layout.FormLayout");
    container.setLayout(layout);
    assertEditor(
        "// filler filler filler",
View Full Code Here

    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new FormLayout())/ /add(labelField)/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.FormLayout} {empty} {/setLayout(new FormLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.form.LabelField} {local-unique: labelField} {/new LabelField()/ /add(labelField)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.FormData} {virtual-layout-data} {}");
    container.refresh();
    //
    WidgetInfo field = container.getWidgets().get(0);
    FormDataInfo formData = FormLayoutInfo.getFormData(field);
    assertNotNull(formData);
  }
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new FormLayout());",
            "  }",
            "}");
    container.refresh();
    FormLayoutInfo layout = (FormLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    // add new LabelField
    FieldInfo newField = createJavaInfo("com.extjs.gxt.ui.client.widget.form.LabelField", "empty");
    assertTrue(flowContainer.validateComponent(newField));
View Full Code Here

            "    BorderLayout borderLayout = new BorderLayout();",
            "    borderLayout.setRenderHidden(true);",
            "    setLayout(borderLayout);",
            "  }",
            "}");
    container.refresh();
    assertNoErrors(container);
  }

  /**
   * Test for {@link BorderLayoutDataInfo#getRegion()}.
View Full Code Here

            "    add(new Button(), new BorderLayoutData(LayoutRegion.EAST));",
            "    add(new Button(), new BorderLayoutData(LayoutRegion.SOUTH));",
            "    add(new Button(), new BorderLayoutData(LayoutRegion.CENTER));",
            "  }",
            "}");
    container.refresh();
    List<WidgetInfo> widgets = container.getWidgets();
    // virtual
    {
      WidgetInfo widget = widgets.get(0);
      BorderLayoutDataInfo borderData = BorderLayoutInfo.getBorderData(widget);
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.