Represents an object that is capable of populating an Item container
representing a cell in a DataGridView with components.
Example
class NamePopulator implements ICellPopulator
{
void populateItem(final Item cellItem, final String componentId, final IModel rowModel) {
User user=(User)rowModel.getObject(cellItem);
String name=user.getFirstName()+" "+user.getLastName();
cellItem.add(new Label(componentId, name);
}}
In this example the IDataProvider assigned to the DataGridView retrieves User
objects from the database. The cell populator adds a label to the cell that
will display the full name of the user.
Example
class NamePopulator implements ICellPopulator { void populateItem(final Item cellItem, final String componentId, final IModel rowModel) { User user=(User)rowModel.getObject(cellItem); String name=user.getFirstName()+" "+user.getLastName(); cellItem.add(new Label(componentId, name); }}In this example the IDataProvider assigned to the DataGridView retrieves User objects from the database. The cell populator adds a label to the cell that will display the full name of the user.