public function setTitlePosition($position)
    {
        $allowedValues = array("in", "out", "none");
        
        if (!in_array($position, $allowedValues))
        {
            throw new \Exception("Invalid position: " . $position);
        }
        
        $this->m_options['titlePosition'] = $position;
    }