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

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


            "      multiField.setOrientation(Orientation.VERTICAL);",
            "      add(multiField);",
            "    }",
            "  }",
            "}");
    container.refresh();
    MultiFieldInfo multiField = (MultiFieldInfo) container.getWidgets().get(0);
    assertFalse(multiField.isHorizontal());
  }
}
View Full Code Here


            "      Button button = new Button();",
            "      add(button, new ColumnData(100.0));",
            "    }",
            "  }",
            "}");
    container.refresh();
    WidgetInfo button = container.getWidgets().get(0);
    // initial state
    ColumnDataInfo columnData = ColumnLayoutInfo.getColumnData(button);
    assertEquals(100.0, columnData.getWidth(), 0.001);
    // set default
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new CardLayout());",
            "  }",
            "}");
    container.refresh();
    CardLayoutInfo layout = (CardLayoutInfo) container.getLayout();
    FlowContainer flowContainer = new FlowContainerFactory(layout, false).get().get(0);
    // add new Button
    ComponentInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
View Full Code Here

            "      Button button_3 = new Button();",
            "      add(button_3);",
            "    }",
            "  }",
            "}");
    container.refresh();
    List<WidgetInfo> widgets = container.getWidgets();
    // initially "button_1" is expanded
    assertActiveIndex(container, 0);
    // notify about "button_2"
    {
View Full Code Here

    assertActiveIndex(container, 0);
    // notify about "button_2"
    {
      boolean shouldRefresh = notifySelecting(widgets.get(1));
      assertTrue(shouldRefresh);
      container.refresh();
      // now "button_2" is expanded
      assertActiveIndex(container, 1);
    }
    // second notification about "button_2" does not cause refresh()
    {
View Full Code Here

            "      Button button = new Button();",
            "      add(button);",
            "    }",
            "  }",
            "}");
    container.refresh();
    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new TableRowLayout())/ /add(button)/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.TableRowLayout} {empty} {/setLayout(new TableRowLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button)/}",
        "    {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.TableData} {virtual-layout-data} {}");
View Full Code Here

            "public class Test extends LayoutContainer {",
            "  public Test() {",
            "    setLayout(new TableRowLayout());",
            "  }",
            "}");
    container.refresh();
    TableRowLayoutInfo layout = (TableRowLayoutInfo) container.getLayout();
    //
    ComponentInfo newButton = createButton();
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    flowContainer.command_CREATE(newButton, null);
View Full Code Here

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

            "      Button button = new Button();",
            "      add(button, new RowData(200, 100, new Margins(20, 0, 0, 10)));",
            "    }",
            "  }",
            "}");
    container.refresh();
    // set AbsoluteLayout
    AbsoluteLayoutInfo layout =
        createJavaInfo("com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout");
    container.setLayout(layout);
    assertEditor(
View Full Code Here

    assertHierarchy(
        "{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new AbsoluteLayout())/ /add(button, new AbsoluteData(10, 20))/}",
        "  {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout} {empty} {/setLayout(new AbsoluteLayout())/}",
        "  {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new AbsoluteData(10, 20))/ /button.setSize('200px', '80px')/}",
        "    {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteData} {empty} {/add(button, new AbsoluteData(10, 20))/}");
    container.refresh();
    // delete AbsoluteLayout
    container.getLayout().delete();
    assertEditor(
        "public class Test extends LayoutContainer {",
        "  public Test() {",
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.