ICellPopulator.java | Interface | 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. |