public function populateCell(GridItem $item, $componentId, Model $model)
 {
     $callable = $this->callback;
     $component = $callable($componentId, $model);
     if ($component == null || !$component instanceof Component || $component->getId() != $componentId) {
         throw new \IllegalStateException('Callback for CallbackColumn is expected to return a componet with the given id');
     }
     $item->add($component);
 }
 /**
  * @todo this should get the property via a resolver helper
  * @param GridItem $item
  * @param type $componentId
  * @param Model $model 
  */
 public function populateCell(GridItem $item, $componentId, Model $model)
 {
     $property = $this->propertyName;
     $value = PropertyResolver::get($model->getModelObject(), $property);
     $item->add(new Label($componentId, new BasicModel($value)));
 }