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

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.TabPanelInfo


  //
  // Tests
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_parse() throws Exception {
    TabPanelInfo panel =
        parseJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Panel panel = new Panel('A');",
            "      add(panel);",
            "    }",
            "    {",
            "      Panel panel = new Panel('B');",
            "      add(panel);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.TabPanel} {this} {/add(panel)/ /add(panel)/}",
        "  {new: com.gwtext.client.widgets.Panel} {local-unique: panel} {/new Panel('A')/ /add(panel)/}",
        "    {implicit-layout: default} {implicit-layout} {}",
View Full Code Here


   * <code>Toolbar</code> with <code>TextField</code> on second page causes problem.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.php?42660
   */
  public void test_invisibleToolbar() throws Exception {
    TabPanelInfo panel =
        parseJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Panel panel = new Panel('A');",
            "      add(panel);",
            "    }",
            "    {",
            "      Panel panel = new Panel('B');",
            "      add(panel);",
            "      {",
            "        Toolbar toolbar = new Toolbar();",
            "        toolbar.addField(new TextField());",
            "        add(toolbar);",
            "      }",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
  }
View Full Code Here

  //
  // Ensure visible
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_ensureVisible() throws Exception {
    TabPanelInfo panel =
        parseJavaInfo(
            "public class Test extends TabPanel {",
            "  public Test() {",
            "    {",
            "      Panel panel_1 = new Panel('A');",
            "      add(panel_1);",
            "    }",
            "    {",
            "      Panel panel_2 = new Panel('B');",
            "      add(panel_2);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    List<WidgetInfo> panels = panel.getChildrenWidgets();
    // initially "panel_1" is expanded
    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

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.widgets.TabPanelInfo

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.