public function addElement($row, $name = null, $attrs = null) {
		if (is_array($row)) {
			$row = new TableRow($row, $attrs, $this->_headPart);
		}
		else if (! $row instanceof TableRow) {
			throw new Exception('Element must be an instance of the TableRow or an array');
		}
		
		return parent::addElement($row, $name);
	}