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

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


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


            "      Panel panel_2 = new Panel('BBB');",
            "      add(panel_2);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    PanelInfo panel_1 = (PanelInfo) panel.getChildrenWidgets().get(0);
    PanelInfo panel_12 = (PanelInfo) panel_1.getChildrenWidgets().get(0);
    PanelInfo panel_123 = (PanelInfo) panel_12.getChildrenWidgets().get(0);
    PanelInfo panel_2 = (PanelInfo) panel.getChildrenWidgets().get(1);
    // initially "panel_1" is expanded
View Full Code Here

            "      Panel panel_2 = new Panel('BBB');",
            "      add(panel_2);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    List<WidgetInfo> panels = panel.getChildrenWidgets();
    // initially "panel_1" is expanded
    assertExpanded(panel, 0);
    // expand "panel_2"
    {
View Full Code Here

    // initially "panel_1" is expanded
    assertExpanded(panel, 0);
    // expand "panel_2"
    {
      notifySelecting(panels.get(1));
      panel.refresh();
      assertExpanded(panel, 1);
    }
    // delete "panel_2", so "panel_1" should be expanded
    {
      panels.get(1).delete();
View Full Code Here

      assertExpanded(panel, 1);
    }
    // delete "panel_2", so "panel_1" should be expanded
    {
      panels.get(1).delete();
      panel.refresh();
      assertExpanded(panel, 0);
    }
    // delete "panel_1", no exceptions
    {
      panels.get(0).delete();
View Full Code Here

      assertExpanded(panel, 0);
    }
    // delete "panel_1", no exceptions
    {
      panels.get(0).delete();
      panel.refresh();
    }
  }

  private static void assertExpanded(PanelInfo accordionPanel, int expectedIndex) throws Exception {
    List<WidgetInfo> panels = accordionPanel.getChildrenWidgets();
View Full Code Here

            "      }",
            "      add(toolbar);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(toolbar)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.Toolbar} {local-unique: toolbar} {/new Toolbar()/ /toolbar.setAutoHeight(true)/ /toolbar.addButton(button)/ /add(toolbar)/}",
View Full Code Here

            "      }",
            "      add(toolbar);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(toolbar)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.Toolbar} {local-unique: toolbar} {/new Toolbar()/ /toolbar.setAutoHeight(true)/ /toolbar.addButton(button)/ /add(toolbar)/}",
View Full Code Here

            "      }",
            "      add(toolbar);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(toolbar)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}");
  }
View Full Code Here

            "      }",
            "      add(toolbar);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new RowLayout())/ /add(toolbar)/}",
        "  {new: com.gwtext.client.widgets.layout.RowLayout} {empty} {/setLayout(new RowLayout())/}",
        "  {new: com.gwtext.client.widgets.Toolbar} {local-unique: toolbar} {/new Toolbar()/ /toolbar.setAutoHeight(true)/ /toolbar.addButton(button)/ /add(toolbar)/}",
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.