public class DataTableSample extends Composite implements SamplePanel {
public DataTableSample() {
Columns columns = new Columns(
new Column("firstName", "First Name", DataTypes.TEXT, 100),
new Column("lastName", "Last Name", DataTypes.TEXT, 100),
new Column("age", "Age", DataTypes.INT, 100),
new Column("gender", "Gender", DataTypes.GENDER, 100, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER),
new Column("birthTime", "Birth Time", DataTypes.TIME, 100, SORTABLE, HIDABLE),
new Column("dutch", "Dutch", DataTypes.BOOLEAN, 50, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER)
);
columns.setFeatures("lastName", SORTABLE, HIDABLE);
columns.setFeatures("age", SORTABLE, HIDABLE);
columns.setAlignment("age", ALIGN_CENTER);