table.setPageSize(10);
table.setShowBanner(true);
table.addColumn(new Column("id"));
FieldColumn column = new FieldColumn("name", new TextField());
column.getField().setRequired(true);
column.setVerticalAlign("baseline");
table.addColumn(column);
column = new FieldColumn("email", new EmailField());
column.getField().setRequired(true);
table.addColumn(column);
column = new FieldColumn("investments", new InvestmentSelect());
column.getField().setRequired(true);
table.addColumn(column);
NumberField numberField = new NumberField();
numberField.setSize(10);
column = new FieldColumn("holdings", numberField);
column.setTextAlign("right");
table.addColumn(column);
DateField field = new DateField();
column = new FieldColumn("dateJoined", field);
column.setDataStyle("white-space", "nowrap");
table.addColumn(column);
column = new FieldColumn("active", new Checkbox());
column.setTextAlign("center");
table.addColumn(column);
table.getForm().add(new Submit("ok", " OK ", this, "onOkClick"));
table.getForm().add(new Submit("cancel", this, "onCancelClick"));
}