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

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.ComplexPanelInfo.refresh()


            "}");
    assertHierarchy(
        "{this: com.google.gwt.user.client.ui.HorizontalPanel} {this} {/add(grid)/}",
        "  {new: com.extjs.gxt.ui.client.widget.grid.Grid} {local-unique: grid} {/new Grid(new ListStore(), cm)/ /add(grid)/}",
        "    {new: com.extjs.gxt.ui.client.widget.grid.ColumnConfig} {local-unique: column} {/new ColumnConfig()/ /configs.add(column)/}");
    panel.refresh();
    assertNoErrors(panel);
  }

  public void test_columns_parse_ignoreAddNotInColumnList() throws Exception {
    parseJavaInfo(
View Full Code Here


        "{this: com.google.gwt.user.client.ui.HorizontalPanel} {this} {/add(grid_1)/ /add(grid_2)/}",
        "  {new: com.extjs.gxt.ui.client.widget.grid.Grid} {local-unique: grid_1} {/new Grid(new ListStore(), cm)/ /add(grid_1)/}",
        "    {new: com.extjs.gxt.ui.client.widget.grid.ColumnConfig} {local-unique: column_1} {/new ColumnConfig()/ /configs.add(column_1)/}",
        "  {new: com.extjs.gxt.ui.client.widget.grid.Grid} {local-unique: grid_2} {/new Grid(new ListStore(), cm)/ /add(grid_2)/}",
        "    {new: com.extjs.gxt.ui.client.widget.grid.ColumnConfig} {local-unique: column_2} {/new ColumnConfig()/ /configs.add(column_2)/}");
    panel.refresh();
    assertNoErrors(panel);
  }

  public void test_columns_parse_andRender() throws Exception {
    ComplexPanelInfo panel =
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    List<?> columns =
        (List<?>) ScriptUtils.evaluate("getColumnModel().getColumns()", grid.getObject());
    assertThat(columns).hasSize(2);
    {
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    //
    ColumnConfigInfo column = getJavaInfoByName("column");
    column.setWidth(200);
    assertEditor(
        "import java.util.List;",
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    assertNoErrors(panel);
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

            "}");
    assertHierarchy(
        "{this: com.google.gwt.user.client.ui.HorizontalPanel} {this} {/add(grid)/}",
        "  {new: com.extjs.gxt.ui.client.widget.grid.Grid} {local-unique: grid} {/new Grid(new ListStore(), new ColumnModel(configs))/ /add(grid)/}",
        "    {new: com.extjs.gxt.ui.client.widget.grid.ColumnConfig} {local-unique: column} {/new ColumnConfig()/ /configs.add(column)/}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    //
    List<ColumnConfigInfo> columns = grid.getColumns();
    assertThat(columns).hasSize(1);
    ColumnConfigInfo column = columns.get(0);
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), (ColumnModel) null);",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    //
    ColumnConfigInfo newColumn = createJavaInfo("com.extjs.gxt.ui.client.widget.grid.ColumnConfig");
    grid.command_CREATE(newColumn, null);
    assertEditor(
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(Collections.<ColumnConfig>emptyList()));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    //
    ColumnConfigInfo newColumn = createJavaInfo("com.extjs.gxt.ui.client.widget.grid.ColumnConfig");
    grid.command_CREATE(newColumn, null);
    assertEditor(
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    //
    ColumnConfigInfo newColumn = createJavaInfo("com.extjs.gxt.ui.client.widget.grid.ColumnConfig");
    grid.command_CREATE(newColumn, null);
    assertEditor(
View Full Code Here

            "      Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
            "      add(grid);",
            "    }",
            "  }",
            "}");
    panel.refresh();
    GridInfo grid = getJavaInfoByName("grid");
    ColumnConfigInfo column_1 = getJavaInfoByName("column_1");
    //
    ColumnConfigInfo newColumn = createJavaInfo("com.extjs.gxt.ui.client.widget.grid.ColumnConfig");
    grid.command_CREATE(newColumn, column_1);
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.