table.setNullSelectionAllowed(true);
table.addContainerProperty("Name", String.class, null);
table.addListener(getTableValueChangeListener());
Address address = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
Address address2 = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
Person person = new Person("Teppo", "Testaaja", new Date(100000000l),
address);
Person person2 = new Person("Taina", "Testaaja", new Date(200000000l),
address2);
Item item = table.addItem(person);
item.getItemProperty("Name").setValue(
person.getFirstName() + " " + person.getLastName());
item = table.addItem(person2);
item.getItemProperty("Name").setValue(
person2.getFirstName() + " " + person2.getLastName());
return table;
}