here is a code sample:
Code:
package org.codelutin.testGWT.client;
import com.extjs.gxt.ui.client.widget.table.Table;
import com.extjs.gxt.ui.client.widget.table.TableColumn;
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
import com.extjs.gxt.ui.client.widget.table.TableSelectionModel;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class FirstTest implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
Table<TableSelectionModel> table;
TableColumn[] columns = new TableColumn[3];
columns[0] = new TableColumn("TITLE", "Titre", 225);
columns[0].setSortable(false);
columns[1] = new TableColumn("VERSION", "Ver.", 35);
columns[1].setHidden(true);
columns[1].setSortable(false);
columns[2] = new TableColumn("FOLDER", "Dossier", 175);
columns[2].setSortable(false);
TableColumnModel<TableColumn> cm = new TableColumnModel<TableColumn>(columns);
table = new Table<TableSelectionModel>(cm);
RootPanel.get().add(table);
}
}
Column VERSION should be invisible, but still apear...