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

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.PanelInfo.refresh()


            "      Panel panel_3 = new Panel();",
            "      add(panel_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    List<WidgetInfo> panels = panel.getChildrenWidgets();
    // initially "panel_1" is expanded
    assertActiveIndex(panel, 0);
    // notify about "panel_2"
    {
View Full Code Here


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

            "      Label label = new Label();",
            "      add(label);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new FormLayout())/ /add(label)/}",
        "  {new: com.gwtext.client.widgets.layout.FormLayout} {empty} {/setLayout(new FormLayout())/}",
        "  {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label)/}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.AnchorLayoutData} {virtual-layout-data} {}");
View Full Code Here

            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new TableLayout(1));",
            "  }",
            "}");
    panel.refresh();
    //
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    assertThat(gridInfo.getRowCount()).isZero();
    assertThat(gridInfo.getRowIntervals()).isEmpty();
View Full Code Here

            "      add(button);",
            "    }",
            "    add(new Label());",
            "  }",
            "}");
    shell.refresh();
    assertThat(shell.getChildrenWidgets()).hasSize(2);
    WidgetInfo button = shell.getChildrenWidgets().get(0);
    WidgetInfo filler = shell.getChildrenWidgets().get(1);
    //
    IObjectPresentation presentation = shell.getPresentation();
View Full Code Here

            "      Label label_3 = new Label();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getChildrenWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 0, 1, 1, 1);
    // refresh() second time, just to covert double initialization, no changes expected
    panel.refresh();
View Full Code Here

    panel.refresh();
    assertCells(panel.getChildrenWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 0, 1, 1, 1);
    // refresh() second time, just to covert double initialization, no changes expected
    panel.refresh();
    assertCells(panel.getChildrenWidgets().get(0), 0, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 0, 1, 1, 1);
  }
View Full Code Here

            "      Label label_3 = new Label();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getChildrenWidgets().get(0), 0, 0, 2, 1);
    assertCells(panel.getChildrenWidgets().get(1), 0, 1, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 1, 1, 1, 1);
  }
View Full Code Here

            "      Label label_3 = new Label();",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertCells(panel.getChildrenWidgets().get(0), 0, 0, 1, 2);
    assertCells(panel.getChildrenWidgets().get(1), 1, 0, 1, 1);
    assertCells(panel.getChildrenWidgets().get(2), 1, 1, 1, 1);
  }
View Full Code Here

            "      Label label_3 = new Label('A');",
            "      add(label_3);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
    IGridInfo gridInfo = layout.getGridInfo();
    //
    assertEquals(2, gridInfo.getColumnCount());
    assertEquals(2, gridInfo.getRowCount());
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.