/**
  * Add an Action to the DataGrid
  * @param $object A TDataGridAction object
  */
 public function addAction(TDataGridAction $object)
 {
     if (!$object->getField()) {
         throw new Exception(AdiantiCoreTranslator::translate('You must define the field for the action (^1)', $object->toString()));
     }
     if ($this->modelCreated) {
         throw new Exception(AdiantiCoreTranslator::translate('You must call ^1 before ^2', __METHOD__, 'createModel'));
     } else {
         $this->actions[] = $object;
     }
 }