public function setContent($content)
    {
        if ($content instanceof FormView) {
            $this->contentType = 'form';
        } elseif ($content instanceof TableView) {
            $this->contentType = 'table';
        } elseif (is_array($content)) {
            $this->contentType = 'data';
        } else {
            $this->contentType = 'html';
        }
        $this->content = $content;
        return $this;
    }