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

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


            "public class Test extends Panel {",
            "  public Test() {",
            "    setLayout(new FitLayout());",
            "  }",
            "}");
    panel.refresh();
    //
    TreePanelInfo treePanel =
        (TreePanelInfo) createWidget("com.gwtext.client.widgets.tree.TreePanel");
    panel.getLayout().command_CREATE(treePanel, null);
    assertEditor(
View Full Code Here


        "      }",
        "      add(treePanel);",
        "    }",
        "  }",
        "}");
    panel.refresh();
  }

  /**
   * When delete root node, new one should be added, because <code>TreePanel</code> requires it.
   */
 
View Full Code Here

            "      }",
            "      add(treePanel);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    TreePanelInfo treePanel = (TreePanelInfo) panel.getChildrenWidgets().get(0);
    // delete "root"
    treePanel.getRootNode().delete();
    assertEditor(
        "public class Test extends Panel {",
View Full Code Here

            "}");
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/setLayout(new BorderLayout())/}",
        "  {new: com.gwtext.client.widgets.layout.BorderLayout} {empty} {/setLayout(new BorderLayout())/}");
    // at refresh() we also should add fix
    panel.refresh();
    assertNoErrors(panel);
  }

  /**
   * Empty <code>Panel</code> with <code>BorderLayout</code> added to <code>RootPanel</code>.
View Full Code Here

            "      toolbar.addField(new TextField('D'));",
            "      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(new ToolbarButton('A'))/ /toolbar.addButton(new ToolbarMenuButton('B'))/ /toolbar.addItem(new ToolbarTextItem('C'))/ /toolbar.addField(new TextField('D'))/ /add(toolbar)/}",
View Full Code Here

            "      Label label_2 = new Label();",
            "      add(label_2);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    // set AbsoluteLayout
    {
      LayoutInfo layout = createJavaInfo("com.gwtext.client.widgets.layout.AbsoluteLayout");
      panel.setLayout(layout);
    }
View Full Code Here

            "      add(label_2, new AbsoluteLayoutData(0, 149));",
            "      label_2.setSize('448px', '149px');",
            "    }",
            "  }",
            "}");
    panel.refresh();
    // set RowLayout
    {
      LayoutInfo layout = createJavaInfo("com.gwtext.client.widgets.layout.RowLayout");
      panel.setLayout(layout);
    }
View Full Code Here

            "      com.google.gwt.user.client.ui.Label label = new com.google.gwt.user.client.ui.Label();",
            "      add(label, new AbsoluteLayoutData(100, 200));",
            "    }",
            "  }",
            "}");
    panel.refresh();
    AbsoluteLayoutInfo layout = (AbsoluteLayoutInfo) panel.getLayout();
    WidgetInfo label = panel.getChildrenWidgets().get(1);
    // Bounds
    layout.command_BOUNDS(label, new Point(5, 5), null);
    assertEditor(
View Full Code Here

            "// filler filler filler",
            "public class Test extends Panel {",
            "  public Test() {",
            "  }",
            "}");
    panel.refresh();
    // "default" is active
    LayoutInfo defaultLayout = panel.getLayout();
    assertTrue(defaultLayout.isActive());
    assertSame(panel, defaultLayout.getContainer());
    // set RowLayout
View Full Code Here

            "      Label label = new Label();",
            "      add(label);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    // initial state
    assertHierarchy(
        "{this: com.gwtext.client.widgets.Panel} {this} {/add(label)/}",
        "  {implicit-layout: default} {implicit-layout} {}",
        "  {new: com.gwtext.client.widgets.form.Label} {local-unique: label} {/new Label()/ /add(label)/}");
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.