return new PLabel();
}
});
final DataGridColumnDescriptor<Pony, String> nameColumnDescriptor = new DataGridColumnDescriptor<Pony, String>();
final ComplexHeaderCellRenderer nameHeaderCellRender = new FilterableHeaderCellRenderer("Name", new StringTextBoxFormField(), "name");
nameHeaderCellRender.addFilterListener(dataProvider);
nameColumnDescriptor.setHeaderCellRenderer(nameHeaderCellRender);
nameColumnDescriptor.setValueProvider(new BeanValueProvider<Pony, String>("name"));
nameColumnDescriptor.setCellRenderer(new LabelCellRenderer<String>());
nameColumnDescriptor.setSubCellRenderer(new LabelCellRenderer<String>());
nameColumnDescriptor.setSubCellRenderer(new LabelCellRenderer<String>());
final PListBox ageListBox = new PListBox(true);
for (int i = 0; i < 30; i++)
ageListBox.addItem(i + " year", i);
final DataGridColumnDescriptor<Pony, String> ageColumnDescriptor = new DataGridColumnDescriptor<Pony, String>();
ageColumnDescriptor.setValueProvider(new BeanValueProvider<Pony, String>("age"));
final ComplexHeaderCellRenderer ageHeaderCellRender = new ComplexHeaderCellRenderer("Age", new ListBoxFormField<Integer>(ageListBox), "age");
ageHeaderCellRender.addFilterListener(dataProvider);
ageColumnDescriptor.setHeaderCellRenderer(ageHeaderCellRender);
ageColumnDescriptor.setCellRenderer(new LabelCellRenderer<String>());
ageColumnDescriptor.setSubCellRenderer(new LabelCellRenderer<String>());
final DataGridColumnDescriptor<Pony, String> raceColumnDescriptor = new DataGridColumnDescriptor<Pony, String>();
raceColumnDescriptor.setValueProvider(new BeanValueProvider<Pony, String>("race"));
final ComplexHeaderCellRenderer raceHeaderCellRender = new ComplexHeaderCellRenderer("Race", new StringTextBoxFormField(), "race");
raceHeaderCellRender.addFilterListener(dataProvider);
raceColumnDescriptor.setHeaderCellRenderer(raceHeaderCellRender);
raceColumnDescriptor.setCellRenderer(new LabelCellRenderer<String>());
raceColumnDescriptor.setSubCellRenderer(new LabelCellRenderer<String>());
dataGrid.addDataGridColumnDescriptor(selectColumnDescriptor);