/**
* Test for {@link GridInfo#command_MOVE(ColumnConfigInfo, ColumnConfigInfo)}.
*/
public void test_columns_MOVE_beforeOtherColumns() throws Exception {
ComplexPanelInfo panel =
parseJavaInfo(
"import java.util.List;",
"import java.util.ArrayList;",
"import com.extjs.gxt.ui.client.store.*;",
"import com.extjs.gxt.ui.client.widget.grid.*;",
"public class Test extends com.google.gwt.user.client.ui.HorizontalPanel {",
" public Test() {",
" {",
" List<ColumnConfig> configs = new ArrayList<ColumnConfig>();",
" {",
" ColumnConfig column_1 = new ColumnConfig();",
" configs.add(column_1);",
" }",
" {",
" ColumnConfig column_2 = new ColumnConfig();",
" configs.add(column_2);",
" }",
" Grid grid = new Grid(new ListStore(), new ColumnModel(configs));",
" add(grid);",
" }",
" }",
"}");
panel.refresh();
GridInfo grid = getJavaInfoByName("grid");
ColumnConfigInfo column_1 = getJavaInfoByName("column_1");
ColumnConfigInfo column_2 = getJavaInfoByName("column_2");
//
grid.command_MOVE(column_2, column_1);